Use them whenever possible
Alt tags are used to provide alternate text for your images. An example is shown below:
<img src="image url" alt="picture of Doug">
There are several reasons for including alt tags in your pages.
- You can use the alt tags to provide more keywords, which helps with website rankings in search results.
- If your picture is slow loading, the alternate text lets the user know what the picture is, while waiting for it to load
- Similarly, if your image is hosted on a different server, and that server goes down, the image will not load at all, so the alternate text will be very important
- Perhaps most importantly, alt text provides valuable information for vision impaired visitors, who cannot see the images, and so rely on text.
|