|
Author: Trenton Moss Article source: http://www.webcredible.co.uk/. Used with author's permission.
Anyone who knows anything about web accessibility knows that images need alternative, or ALT, text assigned to them. This is because screen readers can't understand images, but rather read aloud the alternative text assigned to them. In Internet Explorer we can see this ALT text, simply by mousing over the image and looking at the yellow tooltip that appears. Other browsers (correctly) don't do this. The HTML for inserting ALT text is:
img src="filename.gif" alt="Alternative description goes here"
But surely there can't be a skill to writing ALT text for images? You just pop a description in there and you're good to go, right? Well, kind of. Sure, it's not rocket science, but there are a few guidelines you need to follow...
Spacer images and missing ALT text
Spacer images should always be assigned null ALT text, or alt="" . This way most screen readers will completely ignore the image and won't even announce its presence. Spacer images are invisible images that pretty most websites use. The purpose of them is, as the name suggests, to create space on the page. Sometimes it's not possible to create the visual display you need, so you can stick an image in (specifying its height and width) and volią, you have the extra space you need.
Not everyone uses this null ALT text for spacer images. Some websites stick in alt="spacer image". Imagine how annoying this can be for a screen reader user, especially when you have ten of them in a row. A screen reader would say, "Image, spacer image" ten times in a row (screen readers usually say the word, "Image", before reading out its ALT text) - now that isn't helpful!
Other web developers simply leave out the ALT attribute for spacer images (and perhaps other images). In this case, most screen readers will read out the filename, which could be 'newsite/images/onepixelspacer.gif'. A screen reader would announce this image as "Image, newsite slash images slash one pixel spacer dot gif". Imagine what this would sound like if there were ten of these in a row!
Bullets and icons
Bullets and icons should be treated in much the same way as spacer images, so should be assigned null alternative text, or alt="". Think about a list of items with a fancy bullet proceeding each item. If the ALT text, 'Bullet' is assigned to each image then, "Image, bullet" will be read aloud by screen readers before each list item, making it take that bit longer to work through the list.
Icons, usually used to complement links, should also be assigned alt="". Many websites, which place the icon next to the link text, use the link text as the ALT text of the icon. Screen readers would first announce this ALT text, and then the link text, so would then say the link twice, which obviously isn't necessary.
(Ideally, bullets and icons should be called up as background images through the CSS document - this would remove them from the HTML document completely and therefore remove the need for any ALT description.)
Decorative images
Decorative images too should be assigned null alternative text, or alt="". If an image is pure eye candy then there's no need for a screen reader user to even know it's there and being informed of its presence simply adds to the noise pollution.
Conversely, you could argue that the images on your site create a brand identity and by hiding them from screen reader users you're denying this group of users the same experience. Accessibility experts tend to favour the former argument, but there certainly is a valid case for the latter too.
Navigation & text embedded within images
Navigation menus that require fancy text have no choice but to embed the text within an image. In this situation, the ALT text shouldn't be used to expand on the image. Under no circumstances should the ALT text say, 'Read all about our fantastic services, designed to help you in everything you do'. If the menu item says, 'Services' then the ALT text should also say 'Services'. ALT text should always describe the content of the image and should repeat the text word-for-word. If you want to expand on the navigation, such as in this example, you can use the title attribute.
The same applies for any other text embedded within an image. The ALT text should simply repeat, word-for-word, the text contained within that image.
(Unless the font being used is especially unique it's often unnecessary to embed text within images - advanced navigation and background effects can now be achieved with CSS.)
Company logo
Websites tend to vary in how they apply ALT text to logos. Some say, 'Company name', others 'Company name logo', and other describe the function of the image (usually a link back to the homepage), 'Back to home'. Remember, ALT text should always describe the content of the image so the first example, alt="Company name", is probably the best. If the logo is a link back to the homepage then this can be effectively communicated through the title tag.
Conclusion
Writing effective ALT text isn't too difficult. If it's a decorative image then null alternative text, or alt="" should usually be used - never, ever omit the ALT attribute. If the image contains text then the ALT text should simply repeat this text, word-for-word. Remember, ALT text should describe the content of the image and nothing more.
Do also be sure also to keep ALT text as short and succinct as possible. Listening to a web page with a screen reader takes a lot longer than traditional methods, so don't make the surfing experience painful for screen reader users with bloated and unnecessary ALT text. This article was written by Trenton Moss. He's crazy about web usability and accessibility - so crazy that he went and started his own web usability and accessibility consultancy ( Webcredible - http://www.webcredible.co.uk ) to help make the Internet a better place for everyone.
Network Marketing Evaluation - The Truth Factor Network Marketing Evaluation - The business looks great. The Payplan rewarding. STOP! Due diligence goes a lot deeper than just looks and what you might earn. P...
eBays Latest Fee Increases--Is this the beginning of the end? There's been a lot of people running around lately, announcing that the sky is falling. Certainly, eBay's stock prices have fallen. But the panic is unfounded.....
Generating a Randon Number in PHP This article demonstrates a PHP function that generates unique random numbers.
Troubadours Pythagoras and Chretien de Troyes are part of the tradition which the Cathars kept alive.The Harmonic studied by Pythagoras is part of the Lost Chord and String...
Ten Reasons to Move to the Costa Brava Starting at Blanes to the south and ending at Cadaques in the North, the Costa Brava offers purchasers natural beauty, proximity to the great city of Barcelona,...
Discover The 8 Steps To A Mountain Moving Faith If you have faith as a grain of musterd seed you can say to this mountain: move! And it will move! And nothing will be impossible to you." You can transform y...
Securing Your Accounts With Well-Crafted Passwords In the past I've never really paid much attention to security issues when it comes to user names and passwords. Frankly I figured it was all a lot of overblown ...
Lease Options or Rent to Own? If you are a renter who is tired of paying someone else's mortgage and want to own your own home, you might consider finding a rent-to-own house. This is one of...
Zero Sum Game Most people think the stock market is a zero sum game because there is a buyer for each seller and seller for each buyer so each cancels the other and everythin...
Preparing For Enlightenment Enlightenment, are you really sure you want to have it? It is the natural course for all things to move back to that which created it. There is a good reason wh...
Surprising Health Benefits for Pet Owners Want enhanced health? Here's how a pet can help you become healthier.
Focal Point Of Success Fortune will flow into your hands like a river flow into the sea if only you can invest a high percent of your time on a high value activity with big pay off. I...
Tales from the Corporate Frontlines: Employee Ideas Achieve Work Life Balance Employee Ideas Achieve Work Life Balance
Create Your Own Security Our lives are changing a a faster pace than at any other time in history. In trying to understand and respond to the changes occurring in our work and personal ...
7 Secrets to Explode your eBook Sales! Part 1 Secret #1: How to write an incredible eBook!
Surefire Ways to Pack a Punch With Your Ezines & Newsletters Providing great information in your ezine or newsletter will WOW your subscribers and keep them coming back for more.
What Obesity Debate? The perfect example of how on-line weight loss "experts" can confuse and harm the American consumer...The Obesity Debate?
Parenting Your Teenager: Of Course You Can Search Your Teens Room Too many parents are intimidated when thinking about searching their teen's room. Here are several reasons why you not only can, but should.
How to Find the Best Credit Cards Finding the best credit cards in today's world can be a bit challenging. Although you may receive
hundreds of credit card applications in your mailbox each ye...
Cost-cutting Essential to Maintaining Profits That success in business is dependent on sales, is plain enough. But it is also essential to control or even reduce costs. Cost-cutting efforts demand the atten...
Kitchen Cabinets are The Soul of Your Kitchen Kitchen cabinets reflect the heart and soul of the homeowner. The cabinets you have in your kitchen have the greatest impact on a kitchen's look. They come in m...
Close Kept Secrets to Weight Loss Lesson #21 Write down the relationship that you intend to have with yourself each and everyday. Act as if it is already occurring. Come from a foundation of love for your...
Renters Have Much to Gain by Pursuing Home Ownership Buying a home vs. renting is a big decision that takes careful consideration, as most mortgage consultants will agree. But the rewards of home ownership are gre...
Benefits of A Compact Elliptical Machine With the fitness craze that is going on across the world today, the elliptical trainer is becoming very popular more popular in the average household today. In ...
|