Question:
While I haven't finished my wonderful tutorial to save the world, I do
have a simple question.
What's the difference between h1 and the title tag?
For me it seems as though both can be used interchangebly. For
example, the articles on my site (andkon.com) have the same title as
h1. Comments?
Answer:
-The title applies to the document as a whole, and h1 to the titles of
the major subdivisions within the document. For example, consider a
resume. An appropriate title would be "John Doe's Resume", and some
likely h1's would be "Objective," "Experience," and "References."
In terms of how they're used by browsers, graphical browsers tend to
display the title as part of the text appearing in the title bar. And,
both graphical and text browsers often use it when displaying stored
favorites or bookmarks.
-Another way to put it is that the element is part of the document's
*metadata*, whereas an is part of the document's *content*. Metadata
is literally "data about data" and in the Web context it means the sort of
data that helps one locate or categorize a document; "what is this document
called?" is, for example, a question answerable by metadata.
As it turns out, in most cases the first-level heading of a Web page will
essentially duplicate its title, for the simple reason that any document
that's big enough to have more than one first-level heading should, in a
hypertext environment, probably be broken up into multiple smaller
documents that are linked together. But the roles played by the title and
the heading are still different, even though the same actor may be playing
them.