Uh. This seems old. Dunno why I never replied...
On 21 Feb 2001, Ben Bucksch wrote:
>
> Ian Hickson wrote:
>
>> The "correct" way of writing a web page is a two stage process. First,
>> markup your content semantically -- e.g., use <h1> for the main header,
>
> Don't use h1 for the title, or you'll get a structure like
>
> 1. Writing webpages
> 1.1. Semantical markup
> 1.1.1. Headers
> 1.2. Formatting
> 1.2.1. setting up stylesheets
> 1.3. Final notes
>
> while it should be
>
> Writing webpages
> 1. Semantical markup
> 1.1. Headers
> 2. Formatting
> 2.1. setting up stylesheets
> 3. Final notes
>
> [snipping stuff I agree with]
Nope:
# A heading element briefly describes the topic of the section it
# introduces. [...] HTML does not itself cause section numbers to be
# generated from # headings.
-- http://www.w3.org/TR/html4/struct/global.html#h-7.5.5
If you consider a document to be a sectio, then the document's title would
be the section's title would be the contents of the <h1>.
>> <div> and <span> are meaningless (literally) so they should almost never
>> appear in the markup -- exceptions are those where, for example, you want
>> more than one border to appear and the style language you use doesn't give
>> you enough flexibility to do so.
>
> What, if I want to extend the semantics of HTML, e.g. I want to invent a
> "header" section or "footer" section?
The HTML model doesn't mark up sections, it marks up high-level parts of
speech. (Headers, paragraphs, lists, etc.)
So "header" and "footer" section don't really fit into the HTML model.
--
Ian Hickson )\ _. - ._.) fL
Netscape, Standards Compliance QA /. `- ' ( `--'
+1 650 937 6593 `- , ) - > ) \
irc.mozilla.org:Hixie _________________________ (.' \) (.' -' __________