[html5] Main and Section

Brett Ryan brett.ryan at gmail.com
Tue Mar 4 20:45:44 PST 2014


My bad (again) no sleep last night.

Another difference between the w3c spec then, where w3c states:

Contexts in which this element can be used:
Where Flow content is expected, but with no article, aside, footer, header or nav element ancestors.

http://www.w3.org/TR/2012/WD-html-main-element-20121217/


On 5 Mar 2014, at 3:39 pm, Ian Hickson <ian at hixie.ch> wrote:

> On Wed, 5 Mar 2014, Brett Ryan wrote:
>> 
>> There is no restriction on header/footer elements coming before/after a 
>> main, but main can not be a child of a article/aside or other sectioning 
>> elements. You may only have one main element per document page.
> 
> You can have <main> in an <article> or <aside>, and have multiple per 
> page. It's basically the same as <div>.
> 
>   http://whatwg.org/html#the-main-element
> 
> -- 
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20140305/468f0bf8/attachment-0002.htm>


More information about the Help mailing list