471,583 Members | 1,430 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,583 software developers and data experts.

<BR> Tags - is it always necessary to close these tags?

is it always necessary to close these tags? by using </br>
Aug 17 '07 #1
5 1885
drhowarddrfine
7,435 Expert 4TB
End tags for <br> are forbidden.
Aug 17 '07 #2
Death Slaught
1,137 1GB
End tags for <br> are forbidden.
i wouldnt say there forbidden but the <br> is an empty tag it has no end tag so dont use one because </br> isnt a tag at all.
Aug 17 '07 #3
gregerly
192 Expert 100+
i wouldnt say there forbidden but the <br> is an empty tag it has no end tag so dont use one because </br> isnt a tag at all.
Why would the break tag not be an HTML tag? It's just an HTML tag with no attributes. An IMG tag follows the same rules as the BR tag, it just has attributes. And if you code in XHTML you will need to close the BR tag, only it's not a seperate tag. It's written as <br />.

Hope that helps!

Greg
Aug 17 '07 #4
drhowarddrfine
7,435 Expert 4TB
"Forbidden" is the W3C term for tags that are not allowed to have closing tags. Yes, it is called an 'empty tag' and there is no such thing as </ br>.

<br /> in xhtml is the same thing, an 'empty tag' that is self-closing.
Aug 17 '07 #5
Thank you for your explaination too
Aug 18 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by noor.rahman | last post: by
14 posts views Thread by Khai | last post: by
4 posts views Thread by Christofer Dutz | last post: by
7 posts views Thread by Nathan Sokalski | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
1 post views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.