Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

h and section/div

From: Jewett, Jim J <jim.jewett@eds.com>
Date: Thu, 29 May 2003 18:35:25 -0400
Message-ID: <B8CDFB11BB44D411B8E600508BDF076C15C321DC@usahm010.exmi01.exch.eds.com>
To: "'www-html@w3.org'" <www-html@w3.org>

I understand (and agree with) the decision to replace H1 through H6.

<section class="legal"> is certainly better than overloading <h6>.

But I don't think the current definition of <h> fully solves the
semantics<->markup mapping problem.  I suggest changing the models of
section, div, and block* to include at most one optional title as the first
element.

Semantically, section would be something you might expect to see in a table
of contents, like a chapter.  div or block* would be more like an example;
an example within a chapter is not more important than an example within a
subchapter.

<section>
<h>Title of the first section.</h>
	asdlfjasldfjk asdlfjkasldfjk
	<div><h>minor heading</h></div>
	<section>
	This section has no heading.
		<section>
		<h>level 3 heading.</h>
			<div><h>equally minor heading.</h></div>
		</section>
	</section>
<section>


Additional problems with the current definition,  based on the draft
example:

<body>
	<h>This is a top level heading</h> 
	Oh, h floats up and heads the whole document.
	Also, things can be outside of any section.

<p>
....If I put <h>h directly inside a paragraph</h> that would be wrong.
Instead, I have to write
	<blockquote>
		<div>
			<h>This is still attached to the top of the
document, right?</h>
			There was no section yet, so it should float up to
body or html.
			The heading is OK now <em>because</em> I'm inside a
div,
			which can appear inside a blockquote which can
appear inside a
			paragraph.
		</div>
	</blockquote>
</p>
<section>
    <p>....</p>
    <h>This is a second-level heading</h>  
	It applies to the whole section, including the paragraph that
already finished.
	Well, unless there is an implicit div created by the h and ended by
the next h?
    <p>....</p>
    <h>This is another second-level heading</h>  
	It applies to the same section though, so it must be retitled?  Or
maybe h really
	maps to the next section beneath it?
    <p>....</p>
</section>
<section>
    <p>....</p>
    <h>This is another second-level heading</h>
    <p>....</p>
    <section>
        <h>This is a third-level heading</h>
        <p>....</p>
    </section>
</section>
Received on Thursday, 29 May 2003 18:38:37 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.