[whatwg] <h1> to <h6> in <body>

James Graham jg307 at cam.ac.uk
Thu Mar 31 03:08:40 PST 2005


Ian Hickson wrote:

>On Thu, 31 Mar 2005, James Graham wrote:
>  
>
>>On another point, in general, I don't like adding anonymous headings 
>>[...] although, theoretically, this allows added flexibility when 
>>dealing with highly structed documents (the type where numbering 
>>sections is appropriate), in practice, the majority of documents on the 
>>web aren't like this and often authors use structures like:
>>
>>  <h2>My Sidebar</h2>
>>  <h4>Sidebar section</h4>
>>
>>Which should outline like
>>
>>  |--My Sidebar
>>    |--Sidebar section
>>
>>i.e. without anonymous intermediaries
>>    
>>
>
>The question is then, what should this outline to:
>
>   <h2>A</h2>
>   <h4>B</h4>
>   <h3>C</h3>
>
>...?
>
>(This was one of the examples in my sample outline.)
>
>I see two options:
>
> 1. -- A
>       |
>       +-- B
>       |
>       +-- C 
>
> 2. -- A
>       |
>       +-- <unknown>
>       |   |
>       |   +-- B
>       |
>       +-- C
>
>I don't mind which we do. I guess I'm going to go for option 1 (which 
>seems to be what you asked for)
>  
>
Yes. I think that option 1 makes much more sense for many real-world 
examples even though 2 may appeal to purists.

-- 
"But if science you say still sounds too deep,
Just do what Beaker does, just shrug and 'Meep!'"

-- Dr. Bunsen Honeydew & Beaker of Muppet Labs




More information about the whatwg mailing list