Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: <br> <br />

  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts

    <br> <br />

    I gues this is HTML question.

    in jsp I got this code
    Code:
    <%=sessionGalery.comments[i].split("~~")[1]%>
    which I see in debuger that it contains "<br />something<br />", as it should.

    What actualy appears on HTML(that is jsp) page is: "<br>something<br>".

    Any idea why is that ?
    Last edited by BubikolRamios; 11-08-2010 at 05:46 PM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts
    ehh, I guess this is it:
    Differences Between HTML and XHTML

    In HTML the <br> tag has no end tag.

    In XHTML the <br> tag must be properly closed, like this: <br />.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    831
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Yep. XHTML requires all tags that do not normally have a closing tag to be closed with a space and a "/".
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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