Using Alt Text Effectiviely In Your Writing

who knows anything about web accessibilityneed for any ALT description.)
knows that images need alternative, or ALT, textDecorative images
assigned to them. This is because screen readersDecorative images too should be assigned null
can't understand images, but rather read aloud thealternative text, or alt="". If an image is pure eye
alternative text assigned to them. In Internetcandy then there's no need for a screen reader
Explorer we can see this ALT text, simply byuser to even know it's there and being informed
mousing over the image and looking at the yellowof its presence simply adds to the noise pollution.
tooltip that appears. Other browsers (correctly)Conversely, you could argue that the images on
don't do this. The HTML for inserting ALT text is:your site create a brand identity and by hiding
But surely there can't be a skill to writing ALTthem from screen reader users you're denying
text for images? You just pop a description inthis group of users the same experience.
there and you're good to go, right? Well, kind of.Accessibility experts tend to favour the former
Sure, it's not rocket science, but there are a fewargument, but there certainly is a valid case for
guidelines you need to follow...the latter too.
Spacer images and missing ALT textNavigation & text embedded within images
Spacer images should always be assigned null ALTNavigation menus that require fancy text have no
text, or alt="" . This way most screen readers willchoice but to embed the text within an image. In
completely ignore the image and won't eventhis situation, the ALT text shouldn't be used to
announce its presence. Spacer images are invisibleexpand on the image. Under no circumstances
images that pretty most websites use. Theshould the ALT text say, 'Read all about our
purpose of them is, as the name suggests, tofantastic services, designed to help you in
create space on the page. Sometimes it's noteverything you do'. If the menu item says,
possible to create the visual display you need, so'Services' then the ALT text should also say
you can stick an image in (specifying its height'Services'. ALT text should always describe the
and width) and voliĆ , you have the extra spacecontent of the image and should repeat the text
you need.word-for-word. If you want to expand on the
Not everyone uses this null ALT text for spacernavigation, such as in this example, you can use
images. Some websites stick in alt="spacerthe title attribute.
image". Imagine how annoying this can be for aThe same applies for any other text embedded
screen reader user, especially when you have tenwithin an image. The ALT text should simply
of them in a row. A screen reader would say,repeat, word-for-word, the text contained within
"Image, spacer image" ten times in a row (screenthat image.
readers usually say the word, "Image", before(Unless the font being used is especially unique it's
reading out its ALT text) - now that isn't helpful!often unnecessary to embed text within images -
Other web developers simply leave out the ALTadvanced navigation and background effects can
attribute for spacer images (and perhaps othernow be achieved with CSS.)
images). In this case, most screen readers willCompany logo
read out the filename, which could be 'newsiteWebsites tend to vary in how they apply ALT
images/onepixelspacer.gif'. A screen reader wouldtext to logos. Some say, 'Company name', others
announce this image as "Image, newsite slash'Company name logo', and other describe the
images slash one pixel spacer dot gif". Imaginefunction of the image (usually a link back to the
what this would sound like if there were ten ofhomepage), 'Back to home'. Remember, ALT text
these in a row!should always describe the content of the image
Bullets and iconsso the first example, alt="Company name", is
Bullets and icons should be treated in much theprobably the best. If the logo is a link back to the
same way as spacer images, so should behomepage then this can be effectively
assigned null alternative text, or alt="". Think aboutcommunicated through the title tag.
a list of items with a fancy bullet proceeding eachConclusion
item. If the ALT text, 'Bullet' is assigned to eachWriting effective ALT text isn't too difficult. If it's
image then, "Image, bullet" will be read aloud bya decorative image then null alternative text, or
screen readers before each list item, making italt="" should usually be used - never, ever omit
take that bit longer to work through the list.the ALT attribute. If the image contains text then
Icons, usually used to complement links, shouldthe ALT text should simply repeat this text,
also be assigned alt="". Many websites, whichword-for-word. Remember, ALT text should
place the icon next to the link text, use the linkdescribe the content of the image and nothing
text as the ALT text of the icon. Screen readersmore.
would first announce this ALT text, and then theDo also be sure also to keep ALT text as short
link text, so would then say the link twice, whichand succinct as possible. Listening to a web page
obviously isn't necessary.with a screen reader takes a lot longer than
(Ideally, bullets and icons should be called up astraditional methods, so don't make the surfing
background images through the CSS document -experience painful for screen reader users with
this would remove them from the HTMLbloated and unnecessary ALT text.
document completely and therefore remove the