|
Posted by Ben C on 11/19/07 14:40
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.
Navigation:
[Reply to this message]
|