W3C home > Mailing lists > Public > public-pfwg-comments@w3.org > January to March 2008

3.4.3 Implicit Nesting and Headings

From: Henri Sivonen <hsivonen@iki.fi>
Date: Sun, 23 Mar 2008 22:35:48 +0200
Message-Id: <39D1CA05-5AC0-4A69-80E8-D975B7DE535C@iki.fi>
To: public-pfwg-comments@w3.org


> <p role="main" aria-labelledby="hdr1">
>  <div role="header" id="hdr1">
>     Top News Stories
>  </div>
> </p>

I think this example shouldn't be put forward as a "best practice".

A div must not appear as a child of a p according to HTML 4, XHTML 1.0  
or HTML 5. Moreover, HTML has had native heading markup since its  
inception and this markup is fully stylable in contemporary browsers.  
Authors should have no reason to build a header out of a div instead  
of using HTML native h1h6.

Henri Sivonen
Received on Sunday, 23 March 2008 20:36:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:45:56 UTC