Image alt text, also known as alt tags, offer alternate text to describe images on web pages. Alt text is important to provide extra information if the image cannot be viewed. It also helps people with accessibility requirements and search engines understand the image.
Below is an example of when image alt tag provides alternate text on the web page because the image cannot be viewed.
The correct code that you are required to place within the element in the of the HTML document looks like this:
<img src="https://www.tomdonohoe.com.au/wp-content/uploads/2018/06/title-tag-example.jpg" alt="an example of a title tag on google">
Image alt texts are not only a great opportunity to improve user experience but also your on-page SEO. Let’s take a look at some best practice to follow.
Your alt text should read as if you were explaining the image to a friend over the phone in a concise sentence. Read your image alt tag out loud and see if it makes sense.
Write an image alt text that contains your target keyword in the natural flow of the sentence. This can help the image rank well in Google Images and also improve your current pages ranking power.
When you upload images remember to give them a relevant file name rather than ‘65416541.jpg’. Try to contain your keyword in the file name too. See the above examples where my file is called ‘title-tag-example.jpg’.