WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: IMG with a caption?

for

From: Christian Heilmann
Date: Mar 3, 2005 1:38PM


glenda wrote:

>I having a brain freeze -- is there a way to add a caption under an img??
>Yes, it would be in addition to an ALT. Just need a quick way to add a
>brief description for sighted users.
>
>
>
There is no HTML element or attribute for that, that would make a
connection between the image and the caption. The caption element is for
tables exclusively.

One option would be to nest the image in the same paragraph, at least
then it has the same element. Setting the image display to block in
the CSS will show it above the text.