Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. To Self-Close the BR or Not to Close the BR

To Self-Close the BR or Not to Close the BR

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
8 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #1

    Trick question! Neither. Just found this:

    </br>

    :doh: And, no, there was not an opening BR. Just a long list of anchor tags separated by this new form of BR tag.

    Driven to the ARMs by x86.

    S J D 3 Replies Last reply
    0
    • A AspDotNetDev

      Trick question! Neither. Just found this:

      </br>

      :doh: And, no, there was not an opening BR. Just a long list of anchor tags separated by this new form of BR tag.

      Driven to the ARMs by x86.

      S Offline
      S Offline
      StM0n
      wrote on last edited by
      #2

      you </br>idge the gap... :doh:

      (yes|no|maybe)*

      1 Reply Last reply
      0
      • A AspDotNetDev

        Trick question! Neither. Just found this:

        </br>

        :doh: And, no, there was not an opening BR. Just a long list of anchor tags separated by this new form of BR tag.

        Driven to the ARMs by x86.

        J Offline
        J Offline
        Jeroen De Dauw
        wrote on last edited by
        #3

        Oh, it still works when omitting the opening tag? Cool, then I can omit that one in my code and have faster page loading!

        Jeroen De Dauw (blog | Twitter | Identi.ca)

        1 Reply Last reply
        0
        • A AspDotNetDev

          Trick question! Neither. Just found this:

          </br>

          :doh: And, no, there was not an opening BR. Just a long list of anchor tags separated by this new form of BR tag.

          Driven to the ARMs by x86.

          D Offline
          D Offline
          dawmail333
          wrote on last edited by
          #4

          Burning
          idges, obviously. Seriously, what is the world coming to????? (P.S. and shouldn't he have been using

          or

          • or...) -- Modified Sunday, July 17, 2011 3:28 AM
          M 1 Reply Last reply
          0
          • D dawmail333

            Burning
            idges, obviously. Seriously, what is the world coming to????? (P.S. and shouldn't he have been using

            or

            • or...) -- Modified Sunday, July 17, 2011 3:28 AM
            M Offline
            M Offline
            MikeD 2
            wrote on last edited by
            #5

            another one that I have seen is it depends on whether it is html or Microsoft html as to whether you take the < p > and use styles to make it work like ``< p > is because I couldn't get the tag to show until I put spaces in it, even though I put it in code tags

            N B 2 Replies Last reply
            0
            • M MikeD 2

              another one that I have seen is it depends on whether it is html or Microsoft html as to whether you take the < p > and use styles to make it work like ``< p > is because I couldn't get the tag to show until I put spaces in it, even though I put it in code tags

              N Offline
              N Offline
              Naruki 0
              wrote on last edited by
              #6

              <br /> is correct and is required for XHTML. For other HTML versions, there is no closing marker. In other words, there is never a </br> tag, since the BR element cannot contain anything. And if you are using something called "Microsoft HTML", then get off my Internet! :-)

              Narf.

              R 1 Reply Last reply
              0
              • N Naruki 0

                <br /> is correct and is required for XHTML. For other HTML versions, there is no closing marker. In other words, there is never a </br> tag, since the BR element cannot contain anything. And if you are using something called "Microsoft HTML", then get off my Internet! :-)

                Narf.

                R Offline
                R Offline
                Ravi Sant
                wrote on last edited by
                #7

                :thumbsup:

                // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

                1 Reply Last reply
                0
                • M MikeD 2

                  another one that I have seen is it depends on whether it is html or Microsoft html as to whether you take the < p > and use styles to make it work like ``< p > is because I couldn't get the tag to show until I put spaces in it, even though I put it in code tags

                  B Offline
                  B Offline
                  BobJanova
                  wrote on last edited by
                  #8

                  There is a semantic difference between <p> (or other similar elements like <pre> and <dd>) and <br> (and I don't just mean that one is a container tag and one is a separator). It's not just a matter of (ab)using styles to make one look like the other. A paragraph is one group of related text, which may have explicit line breaks (<br> or, if being XHTML compliant, <br/>) within it. <br> shouldn't be used to split paragraphs, any more than <p> should be used to cause an in-paragraph line break, even if you can mess with the styles so that is the appearance. (An exception would be code listings where it's usual to run the whole thing inside one <pre>, even though one could logically argue that it should be one per method.)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups