[html5] headers

Stephen Stewart carisenda at gmail.com
Mon Apr 6 02:41:55 PDT 2009


On 27 Mar 2009, at 19:12, Ian Hickson wrote:

> On Fri, 27 Mar 2009, Stephen Stewart wrote:
>>
>> I was going to ask a question about the semantics and order of h1-6  
>> headers
>> within a header element but I think my particular issue is solved  
>> by this line
>> in the spec:
>> "Sections may contain headers of any rank, but authors are strongly  
>> encouraged
>> to either use only h1 elements, or to use elements of the  
>> appropriate rank
>> for the section's nesting level."
>
> That's trying to refer to <section>s and <article>s and so forth --  
> within
> <header> you should feel free to use any of them, the whole <header>  
> then
> acts like a single <h1> from a semantic standpoint.
>

Cool. Out of interest then, why would I use <header> instead of:

<h1>
<p>Typeline</p>
<p>Mainline</p>
</h1>

--
Stephen







More information about the Help mailing list