I was just wondering whether it is acceptable to close a common tag, eg. a <span> which requires no data using the XHTML closing slash to reduce markup.
<span>
So for example:
<span id='hello'></span>
could be written as
<span id='hello' />
No you can't do that, span is not self-closing tag. Here are the self closing tags:
span
<area /> <base /> <basefont /> <br /> <hr /> <input /> <img /> <link /> <meta />
1.4m articles
1.4m replys
5 comments
57.0k users