W3C home > Mailing lists > Public > www-html@w3.org > June 2005

Re: [XHTML2] How are UAs to interpret <h> and <hx> elements?

From: David Woolley <david@djwhome.demon.co.uk>
Date: Mon, 13 Jun 2005 07:33:18 +0100 (BST)
Message-Id: <200506130633.j5D6XJQ06454@djwhome.demon.co.uk>
To: www-html@w3.org

> If that's the case, should <h> be required to be the first child of 
> <section>?  If it's not the first child, is it still the heading for any 

I presume that has been done as a concession to semi-presentational
use, such as putting navigation menus before the heading.

> 
> <section>
>    <h id="logo" src="...">The World Wide Web Consortium (W3C)</h>
>    <h id="slogan">Leading the Web to Its Full Potential...</h>

If you did this as Hn, it would be interpreted by user agents that
attempt to model the heading structure as an empty section, followed
by a section entitled "Leading...".  Sub-headings have always been
something of a problem, and are one of the cases where <br> has
traditionally been used.

> <section>
>    <h1 id="logo" src="...">The World Wide Web Consortium (W3C)</h1>
>    <h2 id="slogan">Leading the Web to Its Full Potential...</h2>

No.  That has traditionally, from before HTML, been treated as 
a subsection.

>    <h id="logo" src="...">The World Wide Web Consortium (W3C)</h>
>    <p id="slogan">Leading the Web to Its Full Potential...</p>

The sub-heading isn't body text.
Received on Monday, 13 June 2005 07:19:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:19:03 UTC