<br />? lol

hey i wuz wondering wut a <br /> tag is. that probly sounded really really dumb, but i have never used a <br /> tag in any of my html. i have used <br> tags, tho. r they the same thing?<br />
plz no1 laugh:( lol<br />
-Dan<!--content-->Read all about it:<br />
<br />
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=24331">http://forums.webdeveloper.com/showthre ... adid=24331</a><!-- m --><!--content-->thanx again pyro:D<!--content-->Sure thing. :)<!--content-->I believe the tag <br/> is XHTML. Same as <BR> in HTML<!--content-->Which is exactly what the thread I linked to above told him. ;)<!--content--><br /> is what should be used because it closes the tag, but <br> works the same and doesnt close the tag. But both create a line break.<!--content-->Originally posted by omega <br />
<br /> is what should be used because it closes the tag, but <br> works the same and doesnt close the tag. But both create a line break. <br />
<br />
Not really. As previously stated, <br /> is just the XHTML version of <br>. In both cases the tag is closed because it's an empty tag.<!--content--><br></br> is valid in XHTML, Mozilla, Netscape and Amaya display it correctly.<br />
IE doesn't :mad: <br />
When XHTML2 arrives <br /> will be replaced by <l> (<!-- m --><a class="postlink" href="http://www.w3.org/TR/xhtml2/mod-inline-text.html#sec_9.7">http://www.w3.org/TR/xhtml2/mod-inline- ... ml#sec_9.7</a><!-- m -->.)<!--content-->Why would you want to use <br></br> over <br /> anyway, Fang?<!--content-->Never probably, I was just looking into it's validity.<br />
In html (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.2">http://www.w3.org/TR/REC-html40/struct/ ... ml#h-9.3.2</a><!-- m -->) the end tag is forbidden: use <br> or <br /><br />
In xhtml1 (<!-- m --><a class="postlink" href="http://www.w3.org/TR/xhtml1/#C_2">http://www.w3.org/TR/xhtml1/#C_2</a><!-- m -->) the end tag is allowed: use <br /> or <br></br> (not recomended)<br />
In xhtml2 it will be replaced.<br />
<br />
If you add a br element with the DOM it apparently inserts a <br>.<br />
So are the browsers inserting not validating elements for xhtml?<!--content-->Hey, does that mean if I want to stay valid (other than geo****ty's ad code) I have to change all my <br />'s to <|>? It won't take long, most of my breaks are handled by display: block, but still....<br />
Any other replacements?<!--content-->no, omega, they wouldnt make u do that to remain valid(at least, i hope not). that would cause tons of problems all over the net. they are just providing a simpler way to rite the tag.<br />
-Dan<!--content-->Originally posted by omega <br />
I have to change all my <br />'s to <|>?No. That's only if you use an XHTML 2.0 DOCTYPE, which you most likely aren't as it isn't really even used yet. Also note that it isn't <|>, it's <l> (an "l" for "line").Originally posted by omega <br />
most of my breaks are handled by display: block, but still....Bad idea. There are already elements intended for that.Originally posted by omega <br />
Any other replacements?How about some other block-level elements such as <p> and <div>?<!--content-->No, you misunderstand how I use display: block. If you go to my site (see sig for url) then you'll know what I mean.<br />
<br />
Also, I meant are there any other tags to be changed.<!--content-->
 
Back
Top