When would you use one as opposed to the other? Aren't they the same?
<br> or <br />?
Started by yoursurrogategod, Feb 25 2013 02:07 PM
3 replies to this topic
#1
Posted 25 February 2013 - 02:07 PM
#2
Posted 25 February 2013 - 02:08 PM
Depends on your doctype. Generally, XHTML requires every tag to be closed, and HTML does not.
#3
Posted 25 February 2013 - 04:05 PM
I've coded in XHTML since 2010 and close all self-closing tags, like <br />, <hr />, <img />, <link />K
Kind regards,
L2c.
Kind regards,
L2c.
V.V and O.V <3
http://www.labtec.0f...oved/?page=home
http://www.tpuc.org/
http://www.getoutofdebtfree.org/
#4
Posted 03 March 2013 - 09:12 PM
XHTML requires the closing slash: <br />
HTML4 does not require it, and all the following valid: <br> <br/> <br />
HTML4 does not require it, and all the following valid: <br> <br/> <br />
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












