[whatwg] W3C compatibility
Simon Pieters
zcorpan at gmail.com
Mon Feb 12 06:17:25 PST 2007
On Mon, 12 Feb 2007 15:01:10 +0100, Benjamin Hawkes-Lewis
<bhawkeslewis at googlemail.com> wrote:
> Likewise, any document mapping using <h1> to <h6> to build hierarchies
> in a simple manner is going to be thrown by XHTML5's reuse of such
> headings for subtitles
So subtitles will be part of the document outline in legacy UAs. I'd say
graceful degradation.
> and by markup like:
>
> <body>
> <h4>Apples</h4>
> <p>Apples are fruit.</p>
> <section>
> <h2>Taste</h2>
> <p>They taste lovely.</p>
> <h6>Sweet</h6>
> <p>Red apples are sweeter than green ones.</p>
> <h1>Color</h1>
> <p>Apples come in various colors.</p>
> </section>
> </body>
>
> to use an example out of the spec.
That example is to explain how the outline algorithm works, i.e. an
example for implementors. As stated in the spec, authors are recommended
to either use <h1>-<h6> in a way that would degrade correctly in legacy
UAs, or only use <h1> (which won't produce the correct outline in legacy
UAs, so this is not an option if you want that).
--
Simon Pieters
More information about the whatwg
mailing list