W3C home > Mailing lists > Public > www-html@w3.org > November 2002

Re: Subheadings desired in XHTML 2.0

From: Thomas Hurst <tom.hurst@clara.net>
Date: Mon, 11 Nov 2002 11:41:10 +0000
To: www-html@w3.org
Message-ID: <20021111114110.GA53758@voi.aagh.net>

* Christoph Päper (christoph.paeper@tu-clausthal.de) wrote:

> Etan Wexler <ewexler@stickdog.com>:
>
> > How does XHTML 2.0 deal with subheadings?  How should XHTML deal
> > with subheadings?
>
> You should have given an example, to avoid misunderstandings.

>   The Lord of the Rings 2   <-- heading (Foo)
>     - The Two Towers -      <-- subheading (Bar)
>         by J.R.R. Tolkien   <-- ?

Currently I'd probably put the subheadings in <div>'s after the <hX>,
unless the heading made sense as one long line without style, in which
case I'd probably use <span>'s inside the <hX>.  Shame you can't nest
<div>'s inside <hX>'s :)

In the current incarnation of XHTML 2 I'd be tempted to do something
like:

  <h>The Lord of the Rings 2
     <line>- The Two Towers -</line>
     <line>by J.R.R. Tolkien</line></h>

"The line element represents a sub-paragraph" - using it to denote
subheadings inside a <h> would seem to make sense in that context.

> > <h>Foo
> >    <sh>Bar</sh></h>
> >
> > <h>Foo
> >    <h>Bar</h></h>
[..]
>   <h><h>Foo</h>Bar</h>,
>
> because Foo is at a higher level than Bar. Just like <em><em> is
> *more* emphasized than a single <em>.

<h> is a block level element, though.  Your example is closer to:

  <p><p>Foo</p>Bar</p>

Which in XHTML 2 would be better represented as:

  <p>Foo
     <line>Bar</line></p>

or so.

> Right now (XHTML 1), I'm fine with
>
>   <hX>Foo <span>Bar</span></hX>

Unfortunately this doesn't seperate the subheading from the heading in
any meaningful way -- without style it becomes much less obvious what
Bar is.  At least with using div's the default rendering will tend to
make it reasonably obvious from context.

-- 
Thomas 'Freaky' Hurst  -  freaky@aagh.net  -  http://www.aagh.net/
-
We have seen the light at the end of the tunnel, and it's out.
Received on Monday, 11 November 2002 06:48:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:53 GMT