[html5] self-closing tags in html5
ian at hixie.ch
Tue Aug 5 05:20:56 PDT 2008
On Tue, 5 Aug 2008, Stephen Stewart wrote:
> I was reading a presentation on HTML5 which included this:
> text/html: boilerplate
> <!DOCTYPE html>
> <meta charset="utf-8" />
> Why is the meta element self-closing? I thought self closing tags were a
> product of XML?
In HTML5 we've allowed the / on void elements (like <meta>, <img>, <br>,
<input>, etc), to ease migration to and from XML.
This is defined here (step 6):
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help