| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|What is the <br /> tag?|
I have seen this is a couple of websites recently and it means nothing to me. I searched google and found nothing on it.
What on earth does the <br /> tag do or mean?
It breaks the line. If you put <br />
then your text will go to the next line down.
That's what the <br> tag does, without the slash, it forces a line break.
Is there any difference between <br> and <br/> though? -Larry
<br> is not valid xhtml.
<br /> is.
It only matters if you are using xhtml
[edited by: abbeyvet at 11:02 am (utc) on June 4, 2006]
"That's what the <br> tag does, without the slash, it forces a line break.
Is there any difference between <br> and <br/> though? -Larry"
I use <br> a lot. I'll just leave out the slash, a useless extra byte of bandwidth then.
Ah that clear it up then. Im not using xhtml so <br> is the only thing I use.
Yes <br> and <br/> are the same when using plain HTML. For simplicity I just use <br>.
Personally I try to future proof all my code so as I edit or create new pages I try and close all tags and make sure all tags are lower case.
You can also look at it from the other side.
<br> is correct html 4.01
<br/> is not
So futureproofing isn't doing a lot of good.
If and when you go to XHTML just search and replace all <br> to <br/>
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved