The SEOniverse

Do the decent thing and stop abusing alt tags for SEO gain

Breaking news: we've been thinking about image alt tags all wrong for years!

One of the primary on page SEO tasks, one of the first you learn as a junior SEO, one of the "quick wins" that SEOs use to satisfy the demands of their deadline-obsessed managers is damaging your users' experience.

Alt tags are not there to be optimised, they're there for a very different and more important reason than your website's SEO gain.

How to SEO an alt tag

Also known as alt text or alt attributes, image alt tags offers a more detailed description of an image than the file name. While the file name might include a relevant keyword "spaceship.png" search engines wouldn't be as likely to show this image in results for such a competitive term. Adding an image alt tag to give a more in-depth description, such as "Apollo 11 reentering the earths atmosphere", enables the image to be targeted at long tail searches, aka "gold"! You can see why SEOs see alt tags as an opportunity for a quick win.

When I started as an SEO I was delighted to find a secret place to jam my keywords so the search engines could:

The on page optimisation landscape has changed a lot from these keyword obsessed days, but on many websites the alt tag is still a place where keywords must be placed. It's no surprise when Google still recommends this as a valid SEO method – how often does that happen? Here's what Google says in its recommendations about alt tagging:

"Not so good:

<img src="puppy.jpg" alt="">

Better:

<img src="puppy.jpg" alt="puppy">

Best:

<img src="puppy.jpg" alt="Dalmatian puppy playing fetch">

To be avoided:

<img src="puppy.jpg" alt="puppy dog baby dog pup pups puppies doggies pups litter puppies dog retriever labrador wolfhound setter pointer puppy jack russel terrier puppies dog food cheap dogfood puppy food">

Filling alt attributes with keywords ("keyword stuffing") results in a negative user experience, and may cause your site to be perceived as spam. Instead, focus on creating useful, information-rich content that uses keywords appropriately and in context. We recommend testing your content by using a text-only browser such as Lynx."

Google rightly calls out keyword stuffing, however, they also call out leaving alt tags empty as "not so good". This is at odds with pro accessibility organisations.

Alt tags for accessibility

For visually impaired users who use a screen reader to access pages on the internet, having every single image's alt text read out in such great detail is incredibly tiresome. More often than not the description is irrelevant to the understanding of the content. In the example by Google above, when on a page about dalmatian dogs, is it really necessary for the screen reader to announce "Dalmatian puppy playing fetch" when it hits that image?

While following Google's guidelines for alt tags will help Google understand your website's content better, maybe even give a slight relevancy boost, it's at loggerheads with website accessibility guidelines. Here's what the Royal National Institute for the Blind (RNIB) have to say about the issue:

"If the image contains valuable information such as numerical data on a graph, contextual information, or conveys meaning that would be beneficial to the understanding of the page for a visitor, then it's best practice to use ALT text.

"However, if the image is purely decorative and serves no other purpose than to be aesthetically pleasing, then avoid using ALT text altogether."

Avoiding alt text for meaningless images is the recommendation here, the same recommendation that Google branded "not so good".

Rethinking image alt tags

Before you add your next alt tag, consider if the image actually adds anything to the understanding of the page. If not, do the right thing and stop harming the accessibility of your web pages for SEO gain, even if Google says it's OK.

Back to the blog →