W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2015

Understanding the main element

From: Michael A. Peters <mpeters@domblogger.net>
Date: Thu, 19 Feb 2015 16:28:20 -0800
Message-ID: <54E67FA4.4060204@domblogger.net>
To: WAI Interest Group <w3c-wai-ig@w3.org>

If this is the wrong list for support I apologize.

I am using http://www.evaluera.co.uk/ A-Tester to identify parts of my 
site that need to be fixed.

An error I am confused about--

`The main element has an h1 element or header element as a direct child.'

This is the basic structure of my body

   <header><!-- stuff --></header>
   <div id="container">
     <div id="leftcol"><!-- stuff --></div>
     <main id="content">
         <h1>First heading</h1>
         <!-- stuff -->
           <h2>Another Heading</h2>
         <!-- etc. -->
     <div id="rightcol"><!-- stuff --></div>
   <footer><!-- stuff --></footer>

Before the main element, I would just put role="main" in the article 
node but I have been informed that is now correct.

Am I using main correctly or am I not understanding its purpose?
Received on Friday, 20 February 2015 00:28:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:54 UTC