difference between <br> and </ br> tag

wulaishiwo4

New Member
what is the difference between <br> and </ br> tag?

To make standards compliant HTML, every tag that is opened should be closed. Since the br tag does not have any data between its opening and closing tags then the closure should be indicated at the end of the tag as shown above.

Any other points?
 

Phreaddee

Super Moderator
Staff member
the difference is one exists and one doesnt.
there is no</ br> tag you might be confusing it with <br /> which is xhtml
 

Mug

New Member
Syntax difference between xhtml and html. Phreaddee is right though.

<br> for html
<br/> for xhtml

html 5 allows the use of either.
 

jumpingspider

New Member
To make standards compliant HTML, every tag that is opened should be closed. Since the br tag does not have any data between its opening and closing tags then the closure should be indicated at the end of the tag as shown above.
 
Top