The Artima Developer Community
Sponsored Link

Web Buzz Forum
What to do about alt text

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stuart Langridge

Posts: 2006
Nickname: aquarius
Registered: Sep, 2003

Stuart Langridge is a web, JavaScript, and Python hacker, and sometimes all three at once.
What to do about alt text Posted: May 13, 2005 2:18 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Stuart Langridge.
Original Post: What to do about alt text
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Latest Web Buzz Posts
Latest Web Buzz Posts by Stuart Langridge
Latest Posts From as days pass by

Advertisement

I run into this problem a lot. Imagine I’ve got a picture of, say, Sam and I at a party. I’d like to post that picture here. So, I’d have the picture and then, below it, a caption saying “This is Sam and I at the Beckham’s party“. But then what should I use as the alt text on the picture? Clearly the alt text should be “Sam and I at the Beckham’s party“, or perhaps even a longer description of the image. However, then the caption is redundant; if someone browses the page with images off then it will (correctly) display the alt text in place of the picture, leaving the page saying “This is Sam and I at the Beckham’s party. Sam and I at the Beckham’s party.”
Those of you saying: appropriate alt text for that image is therefore the empty string, since there already is a caption in the HTML; what should I do if i want the image to be a link to beckhams-party.com? If I make the alt text empty then the link is unusable in text-only browsers.
Perhaps I should, for example, make the alt text empty and wrap both the image and the caption in the link, thus covering both those bases. That only works if the caption is the thing immediately following the image, though. Semantic HTML people, what would you recommend?

Read: What to do about alt text

Topic: Podifier, …it’s a wrap Previous Topic   Next Topic Topic: Big numbers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use