SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2005
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Confusing Tag rules

    Which is correct <br> or <br /> ? I suppose <br /> is correct because when you use <br> you dont close the tag.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML: <br>
    XHTML: <br/>

    If you use 'pretend' XHTML (served as HTML), a space before the slash is recommended to avoid problems with some old browsers.
    Birnam wood is come to Dunsinane

  3. #3
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Beaten to it by Tommy

    depends on what DTD you use

    A very general answer

    HTML 4.01 <br>
    XHTML 1.0 <br />


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •