Learn About Image Alt Text

What is Image Alt Text?

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.

Image alt text examples

Below is an example of when image alt tag provides alternate text on the web page because the image cannot be viewed.

an example of the image alt text of a broken image

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">

SEO best practices for image alt tags

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.

Be concise and descriptive

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.

Avoid: writing a paragraph to explain the image. One sentence is more than enough.

Contain your main keyword where possible

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.

Avoid: stuffing all your keywords into the image alt text and provide no context for what the image is about. Google will just ignore it.

Give images a relevant file name

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’.

Avoid: giving files really long names 3-5 words is more than enough.

Keep Learning:

Related Content: