Author
Alex Panagis
21 June, 2024
If you’re wondering how to add alt tags to images in WordPress, you may also have wondered just how important alt tags are these days.
Is it really worth doing?
Here are five facts for you.
Never mind that Google treats alt tags as a key way of evaluating a web page for search5, or that last year, there were 10 lawsuits per day related to online accessibility issues.6
If you think alt tags are just a ‘little extra’, that ‘might be worth it, might not’ – it’s time to get real.
Alt tags are essential for search results, for complying with the law, for enabling millions of people to access your website, and for enjoying a large slice of a pie worth $60 billion.
Alt tags, also known as “alt attributes” or “alt descriptions,” are HTML attributes applied to image tags to provide a text alternative for search engines and visually impaired users using screen readers. These tags are also useful in describing images when the image can not be loaded due to a network error.
The following code snippet shows an example of an HTML element with the alt attribute:
<img src="image.jpg" alt="image description">
Alt tags are crucial for SEO for several reasons:
While alt tags improve the SEO of a website, they were introduced with the specific aim of improving the accessibility of a website in several ways:
An additional benefit is that if an image fails to load, the alt text will display in place, informing the user of the intended content. This is helpful when linking to a broken image as having a description of the image makes it easier to find it and fix the link.
There are three main ways to add alt tags to images:
Here’s how to add Alt tags to existing images in WordPress blog posts:
Here’s how to add alt tags while uploading new images to the WordPress Media Library:
WordPress makes it easy to add alt tags by providing a user-friendly interface, but it also allows advanced users to directly edit the HTML tags. You can use this functionality to modify the alt text for your images:
Select the image for which you want to add the alt text, and click on the “three dots icon” – this will open an additional context menu. In this menu, click on “Edit as HTML” to view the raw HTML for this image.
Many people choose to create content for WordPress posts or pages in Google Docs, which is a great choice, as it provides the option to work collaboratively with others, give and receive feedback easily, and use features such as spell checking to ensure the accuracy of your written content.
However, many people make the mistake of then copying and pasting that content from Google Docs straight into WordPress.
This is a mistake for two reasons: firstly, much of the formatting is likely to be changed or missed (especially if you have custom styles), and secondly, none of your images will be copied across!
Oh, it will LOOK as though your images have been copied…
…but that’s extremely misleading.
What actually happens is that WordPress creates external links to the images embedded in your Google Doc! This means that when your visitors access your website, the server is having to access your Google Doc to extract the images to serve to the visitor!
This is, of course, extremely slow, and if you ever move, delete, rename, or edit the Google Doc, your website content will be immediately broken, and you probably won’t realize why.
Fortunately there’s a solution to this.
Workover Sync is a new tool that allows you to export content in Google Docs directly to your WordPress website, retaining all formatting and uploading all images directly to your Media Library.
But there’s another bonus – because Workover Sync allows you to edit the alt tags of all your images really simply and easily.
With Workover Sync, you can easily edit and modify the name of the image and its alt text by simply clicking on the three dots located at the top right corner of the image preview screen, and entering the new values in the field.
That’s it! Once you click Save, you are ready to go.
Here are some tips and best practices for writing effective alt tags:
Examples of Good and Bad Alt Tags
✅ Good Alt Tag: “Golden retriever playing fetch in a sunny park”
😝 Bad Alt Tag: “Dog”
😱 Worse Alt Tag: “Dog, dog food, dog toys, cheap dog toys, popular dog toys”
The good Alt tag is descriptive and gives a clear idea of what the image is about. The bad alt tag is too vague and doesn’t provide enough information. The worst alt tag is clearly uninterested in supporting those with disabilities, and instead is just trying to grab a quick win with the search engines (which definitely won’t be impressed!).
Alt tags play a crucial role in enhancing the accessibility and SEO of your WordPress site as they provide a text alternative for images, which is beneficial for both visually impaired users and search engine crawlers.
Adding Alt tags to your images in WordPress is a straightforward process, and with practice, it will become second nature.
If you’re looking for a seamless way to manage your WordPress content, consider signing up for Workover. It’s a powerful platform that allows you to sync your content from Google Docs to WordPress instantly, including all images, lists, and formatting.
Join our newsletter for
the latest in SEO & content