Previous Message
Next Message

Assigning heading tags for content display

Sent by David Dorward on 2 January 2004 09:09

On Fri, 2004-01-02 at 03:36, Dave G wrote:
> CSS Gurus,
> 	I'm trying to conform to conventions of CSS for tag assignments.
> To make a long story short, here's how I've assigned some tags to
> respective content:
> <h1> - Web site title that appears top of every page
> <h2> - Web page title for that particular page's content
> <h3> - Footer text that appears at the bottom of every page

No, <h3> marks up a heading, not a footer.

> <h4> - Menu text which appears top of every page

No, <h4> marks up a heading, not a menu.

> <h5> - breadcrumb text, appears both top and bottom, very small

No, <h5> marks up a heading, not a menu.

> <p> - text content of web site

Only those parts of the content which are paragraphs.

> <em> - italizized content

No, elements which should have emphasis.

> <strong> - bold content

No, elements which should have more emphasis.

> <span class="class"> - I use "class" to define any unusual or unique
> formatting requirements

No, class should define the meaning, not the formatting. (You then apply
formatting, using CSS, to the class - but its the style sheet that
defines the meaning, not the HTML. For example: class="greyBackground"
is not a good choice, whilst class="entry" probably is).

> 	Before I commit to using this template for my web site, I'm just
> wondering if I've got the concept of using heading tags with the right
> principle in mind, and if this has any potential future problems.

Headings are heading. You use a <h1> heading to mark up the main page
heading, then <h2> for subheadings, the <h3> for subsubheadings and so

David Dorward                                 <>
css-discuss [EMAIL-REMOVED]]
Supported by --
Previous Message
Next Message

Message thread:

Possibly related: