Mini vic.gov.au

This is a low bandwidth version of vic.gov.au. Contents may not be up to date. © Copyright State Government of Victoria

Alternative text - digital guide

What is alternative text, why it’s important and examples of proper use.

On this page

What is alternative text?

Alternative text provides a textual alternative to non-text content in web pages, such as photographs, logos and other images.

Alternative text serves several functions:

Do not use alternative text to describe decorative elements or visual elements that are not not important to the page content. You don’t need to provide alternative text to describe a visual pattern, colour or visual style of a site element (such as a navigation element). For these elements leave the ‘alt attribute’ of the image blank.

All of these functions are important so you must provide alternative text wherever practical.

Alternative text can be presented in two ways:

Using an image caption instead of using an ‘alt attribute’ may be more appropriate in some contexts. For example, a photo within an article.

When using a caption it’s important not to duplicate the alternative text so the ‘alt attribute’ should be left blank in this case.

In many cases using a caption won’t be possible, so an ‘alt attribute’ must be used.

Examples of proper use

Example 1: Photos

![Photograph of a large, diverse group of cheering students, standing up and fist-pumping on the bleachers of a basketball game.](/sites/default/files/2018-10/Example 1 Photos.jpg)

With an image or photograph it is good to explain the scene in detail while also keeping the description short.

You don’t need to state that it is an image because screen readers make the user aware of this automatically. You may, however, state whether the image is a photograph or illustration if it’s important for the user to know.

The mood, or tone, of the image should also come across in the explanation if it’s important to the user’s understanding. In this example, the diversity of the crowd, the excitement of the scene and the emotions of the people in the photo are integral to the user’s understanding so it’s important to make note of them.

Good alternative text example:

‘Photograph of a large, diverse group of cheering students, standing up and fist-pumping on the bleachers of a basketball game.’

Bad alternative text example:

‘Image of a crowd at a basketball game.’

Example 2: Logos

Regional Development Victoria logo

There is no need to state that this is a logo. However the company or department name must be used.

When an image is also a link, screen readers will make this clear to the user, so there’s no need to state that it’s a link. However, it is important to indicate where the link will take users. In this case it will take users to the homepage of the website.

Good alternative text example:

‘Regional Development Victoria. Homepage.’

Bad Alternative text example:

‘Site logo. Click this link to go to the homepage.’

Further reading and resources

Governance

Updated 5 July 2023


Join the conversation on digital

Get advice and share your insights with other digital practitioners. Join the Single Digital Presence Community of Practice(opens in a new window).

Join the SDP community


About the VIC Government

Grants and programs

Jobs and careers

Arts, culture and heritage

Business and the workplace

Communities

Education and training

Environment, water and energy

Finance and economy

Health and social support

Housing and property

Law and justice

Safety and emergencies

Science and technology

Sport and recreation

Traffic and transport

Working in the Victorian Government