3.4.3 Implicit Nesting and Headings

http://www.w3.org/TR/wai-aria-practices/

> <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
hsivonen@iki.fi
http://hsivonen.iki.fi/

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