Alastair Campbell wrote:
On 5/29/07, Rimantas Liubertas <[EMAIL PROTECTED]> wrote:
http://www.w3.org/TR/html401/sgml/sgmldecl.html
FEATURES, SHORTTAG YES
I guess from that I should deduce that I do need to know the SGML spec
to know that a slash will terminate a tag?
I hope HTML5 does away with this...
HTML5 disposes of the myth that HTML is an application of SGML, so you
don't need to understand SGML at all. In fact, in HTML5, the trailing
slash is explicitly permitted for void elements, though it's not
necessary. Void elements (formerly known as empty elements in SGML) are
elements like <br>, <img>, <meta>, etc.
Thus, in HTML5, both <img> and <img/> are permitted and mean the same
thing. The slash is ignored by the parser. However, the slash is not
permitted for non-empty elements. e.g. <p/> is not allowed in HTML,
though it is in XHTML because XML rules apply.
--
Lachlan Hunt
http://lachy.id.au/
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************