WebAIM - Web Accessibility In Mind

E-mail List Archives

H tag with image as content?

for

From: Rick Hill
Date: Feb 12, 2013 12:19PM


Seems like many/most of the accessibility tools flag a Heading tag that contains ONLY and image with no test content as having no content:

<h1>
<a href="index.html">
<img alt="Image text" src="image.gif" />
</a>
</h1>

I thought the alt attribute would count as content. Looks like I was mistaken? If the alt doesn't count as textual content, what is a the best practice technique for this?

-------------------------------------------------------------------
Rick Hill, Web CMS Administrator
University Communications, UC Davis
(530) 752-9612
http://cms.ucdavis.edu
-------------------------------------------------------------------
Web CMS assistance at <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
-------------------------------------------------------------------