I was taught to write <br/> but then I was later told to write <br />. Which is the correct way and does it make a difference?
How to close the break BR tag
Collapse
X
-
Comment
-
@mariko,
I doubt you are serving xhtml and there is no such thing as <br/> in HTML so you should use <br>. Browsers treat <br/> as "tag soup" which is why it works, they're required to do the best they can with it.Comment
-
@ mariko
i have always written in the old way...
which is <br> for opening and </br> for closing...
but <br /> is the new way but it won't matter if you are only using html and css but it will if you are using dhtml [aka, javascript, xhtml]
i recomend to use the old way for html...
many others will dissagreeComment
-
well, I don’t. always use the proper style. (not something like writing XHTML and serving it as HTML)Comment
Comment