|
Posted by Jonathan N. Little on 11/19/07 14:49
Ben C wrote:
> On 2007-11-19, Andy Dingley <dingbat@codesmiths.com> wrote:
>> On 17 Nov, 09:43, Ben C <spams...@spam.eggs> wrote:
>>
>>> Even if headings are supposed to be strictly hierarchical, you could
>>> still have two top level headings in a document
>> I've not checked this in the standard, but I don't believe so.
>>
>> Under W3C HTML (the only real sort) there's no restriction on
>> hierarchy or ordering of <h*> at all. Do whatever you like.
>>
>> Under the bizarre aberrant ISO HTML (which I intend to ignore rather
>> than dissecting), the require both strict hierarchies _and_ a single
>> <h1> as a root.
>
> Are you sure? From https://www.cs.tcd.ie/15445/15445.html#DTD:
>
> <!ELEMENT BODY - O (%block;|H1|H2|H3|H4|H5|H6)+ +(DEL|INS) >
>
> Doesn't that mean the BODY must contain one _or more_ of a block or a
> H#?
>
> So
>
> <body>
> <h1></h1>
> <h1></h1>
> </body>
>
> would be valid.
Just because the it will parse does not necessary mean that it makes
sense. You could put your address in an ACRONYM element, or your site
navigation links in definition list DT. It can validate as valid HTML
but it wouldn't make semantic sense.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|