W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2013

Re: [whatwg] Is <main> now an official HTML5 element?

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 13 Feb 2013 17:06:52 +0000 (UTC)
To: Ian Yang <ian@invigoreight.com>
Message-ID: <Pine.LNX.4.64.1302131654160.3956@ps20323.dreamhostps.com>
Cc: whatwg <whatwg@whatwg.org>
On Wed, 13 Feb 2013, Ian Yang wrote:
> 
> I saw the SitePoint article "Introducing the New HTML5 <main> 
> Element<http://www.sitepoint.com/html5-main-element/>" yesterday. Does 
> that mean <main> element has been approved by all editors of the working 
> group?

<main> is currently in the HTML standard. That doesn't mean much, though. 
What means something is that <main> is now implemented by two browsers in 
their development builds. Once they ship in final versions, that's the 
point at which we know that the feature is part of the platform.


> However, in spec, it still says that <main> element is not a sectioning
> element.

Correct. Broadly speaking, sectioning elements are those with headings; 
<main> doesn't typically have a heading, it contains the content after the 
heading, distinguishing it from the content that is "merely" heading and 
navigation and so forth.


> That means, in document outline, main content will form another
> tree structure instead of appearing under the original website tree
> structure.

I'm not sure what you mean here. The main content doesn't appear in the 
outline; the outline only contains the headers, essentially.


> Can we have somebody advise on this? Is there a special consideration to 
> not making <main> a sectioning element?

There's already corresponding sectioning elements to indicate something 
that is "main" content -- <article> or <section>, depending on what 
exactly the content is.


The spec goes into some detail about this, including with examples, here:

   http://whatwg.org/html#the-main-part-of-the-content
   http://whatwg.org/html#the-main-element
   http://whatwg.org/html#usage-summary-0
   http://whatwg.org/html#sample-outlines

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 13 February 2013 17:07:22 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:19 UTC