WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Re[2]: HTML heading styles

for

From: Tina Vance
Date: Oct 19, 2004 10:51AM


On Oct 19, 2004, at 12:25 PM, iain wrote:

> If you redefine H4 to be smaller on the page, where does that leave
> a page with both H3 and H4 content? Either they'll be hard to
> distinguish, or you'll have inconsistency between pages.


If you have specific uses, such as the "related links" example, don't
style the h4 specifically. Styling the specific tag makes it useless
for any other task on the page, as Iain pointed out. Instead, create a
style class that can be applied to the header, whatever the header is,
but will leave the general styling of that tag's instances alone on the
rest of the page.

If you create a class, you can use it on any header tag, keeping the
tree structure of the header tags intact.

----
Tina Vance