WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: How would you mark up this information?

for

From: Don Hinshaw
Date: Apr 23, 2005 10:28AM


Thanks for all the great advice!

Jukka K. Korpela wrote:

> The choice between
> <h2>...</h2>
> <p>...</p>
> and
> <h2>...</h2>
> <div>...</div>
> depends on whether you regard the contact information as a paragraph of
> text or not. I wouldn't. There's not much practical difference in
> rendering, since the headings would act as dividing the content into parts
> anyway. Moreover, in styling, you would need to worry about the margins
> (and font size) of <h2> elements only, since <div> elements (unlike <p>)
> have no default margins. Setting, say
>
> h2 { font-size: 100%; margin: 1em 0 0 0; }
>
> could be enough.
>
>
>
--
Don Hinshaw
Hinshaw Design Group
http://www.hinshawdesign.com