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

Re: H1

From: Jared Warren <warren@cs.queensu.ca>
Date: 12 Feb 2003 17:26:36 -0500
To: www-html@w3.org
Message-Id: <1045088797.537.315.camel@foobox.dyndns.org>

> But doesn't that make <title> redundant; if it can
> be unambiguously determined from the first (?only>)
> <h1>, then why have <title> at all ?

Rather: why have H1 at all?* In most LaTeX styles the title from the
head is put on the first page. The XHTML equivalent would be including
the following (which uses Microsoft's proposed expression() value) in
the default stylesheet:

BODY:before {
        content:
expression(document.getElementsByTagName('title').item(0).firstChild.data);
        display: block;
        font-size: 2em;
        margin: 0.67em 0;
        font-weight: bolder;
}

After all, it is entirely arbitrary for UAs to put the contents of the
TITLE element in the titlebar. So you shouldn't be putting navigation
hints or advertisements, or whatever else some of the other posters
would call their garbage. Also, the TITLE of a document is not
semantically the same as "what the document should be bookmarked as".
Maybe there should be seperate styles for the titlebar, then you could
do things like this in your site-wide stylesheet:

TITLEBAR:before {
        content: 'Royal Holloway : ';
}

@media bookmark {
        [...?]
}

~ Jared Warren
Computing Science, Queen's University

* And of course the XHTML2 proposal doesn't rather allowing one H per
SECTION or BODY, making this entire thread moot.
Received on Wednesday, 12 February 2003 17:26:39 GMT

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