yoursurrogategod Posted February 25, 2013 Share Posted February 25, 2013 When would you use one as opposed to the other? Aren't they the same? Quote Link to comment Share on other sites More sharing options...
shlumph Posted February 25, 2013 Share Posted February 25, 2013 Depends on your doctype. Generally, XHTML requires every tag to be closed, and HTML does not. Quote Link to comment Share on other sites More sharing options...
Love2c0de Posted February 25, 2013 Share Posted February 25, 2013 I've coded in XHTML since 2010 and close all self-closing tags, like <br />, <hr />, <img />, <link />K Kind regards, L2c. Quote Link to comment Share on other sites More sharing options...
haku Posted March 4, 2013 Share Posted March 4, 2013 XHTML requires the closing slash: <br /> HTML4 does not require it, and all the following valid: <br> <br/> <br /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.