[html5] headers
Keryx Web
webmaster at keryx.se
Sun Apr 12 11:44:13 PDT 2009
Den 2009-04-06 20:28, Ian Hickson skrev:
> On Mon, 6 Apr 2009, Stephen Stewart wrote:
>>>> Out of interest then, why would I use<header> instead of:
>>
>> <h1>
>> <p>Typeline</p>
>> <p>Mainline</p>
>> </h1>
>
> The main use case is providing two levels of headers, e.g.:
>
> <header>
> <h1>Typeline</h1>
> <h2>Mainline</h2>
> </header>
>
> ...but if we did that with<h1> instead of<header>, the parsing would
> break (the<h2> would imply the end of the<h1>, if I recall correctly).
>
Using p elements within h1-h6 is not allowed, if I remember correctly.
Lars Gunther
More information about the Help
mailing list