E-mail List Archives
H tag with image as content?
From: Rick Hill
Date: Feb 12, 2013 12:19PM
- Next message: Steve Green: "Re: H tag with image as content?"
- Previous message: Jim Allan: "Code Sniffer"
- Next message in Thread: Steve Green: "Re: H tag with image as content?"
- Previous message in Thread: None
- View all messages in this Thread
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> >
-------------------------------------------------------------------
- Next message: Steve Green: "Re: H tag with image as content?"
- Previous message: Jim Allan: "Code Sniffer"
- Next message in Thread: Steve Green: "Re: H tag with image as content?"
- Previous message in Thread: None
- View all messages in this Thread