W3C home > Mailing lists > Public > www-html@w3.org > February 2006

What is the scope of a header?

From: Jim Jewett <jimjjewett@gmail.com>
Date: Thu, 2 Feb 2006 14:03:37 -0500
Message-ID: <fb6fbf560602021103x61525008la7e240f08f90b509@mail.gmail.com>
To: www-html-editor@w3.org
Cc: www-html@w3.org

The example in http://www.w3.org/TR/xhtml2/mod-structural.html#sec_8.5.
shows headers matched 1:1 with a following block element.

Are the semantics defined if this pattern is not followed?  For
instance, does the following header cover all three paragraphs, or
only the first one?

<h>This is a top level heading</h>

If this is intentionally undefined, then please say so.

If it covers only the first, that will surprise people.

If it covers all three, then it effectively creates an anonymous div
around the three paragraphs -- and I think that the header should
really be a *child* of that div, rather than a sibling.  We only want
it as a sibling because the default presentation of "float it out
ahead" is so strong.  In other words, the semantics really should be

<section><h>This is the sole heading for this section</h>

I assume the implicit div would end at the first of (1)  the end of
the container or (2) the next header of at least equal strength (and
separators are too weak to end it), but ... maybe it would be better
to just require the sectioning explicitly.

Received on Thursday, 2 February 2006 19:03:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:12 UTC