WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: H tag with image as content?

for

From: Steve Green
Date: Feb 12, 2013 12:24PM


It's a bug in the tool. There's nothing wrong with that as long as the 'alt' attribute is appropriate.

Steve Green

-----Original Message-----
From: <EMAIL REMOVED> [mailto: <EMAIL REMOVED> ] On Behalf Of Rick Hill
Sent: 12 February 2013 19:20
To: WebAIM Discussion List
Subject: [WebAIM] H tag with image as content?

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> >
-------------------------------------------------------------------