WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Semantically pointless?

for

From: Kynn Bartlett
Date: Mar 13, 2006 3:40PM


On 3/13/06, Pete Fairhurst < <EMAIL REMOVED> > wrote:
>
> Ideally, I'd think something like a definition list would be best suited
> to what I'm trying to convey. But, as definition term elements cannot
> contain markup, I'm opting for this simpler alternative.
>

This is an incorrect statement.

<dt> elements can (and usually do) contain markup. They are restricted to
%inline content only, but in your example you seem to be using only <b> and
<img> elements, which are inline, and thus allowable.

This would also be a good place to use the CSS display property's value of
"run-in":

dt { display: run-in; }

(PS: I do agree that <strong> is probably better than <b> in most cases, but
in this case I'm not convinced it makes any difference.)

--Kynn