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:
- It’s read by screen readers in place of images so the content and function of the image are accessible to people with visual or certain cognitive disabilities.
- It’s displayed in place of the image in browsers if the image file is not loaded or when the user has chosen not to view images.
- It provides a semantic meaning and description for images that can be read by search engines or be used to later determine the content of the image from page context alone.
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:
- within the alt attribute of the img element (in code) – this will be picked up by screen readers but invisible to the majority of page visitors
- within the context or surroundings of the image itself – this may be in the form of an image caption, for example
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

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

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
- Web AIM Accessibility in Mind
- Alt text field No More Excuses - The Definitive Guide To The Alt-Text Field
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).
About the VIC Government
- The Premier and ministers
- Find a Vic Gov department, agency or service
- Strategies and policies
- Inquiries and royal commissions
Grants and programs
Jobs and careers
Arts, culture and heritage
Business and the workplace
- Mentally Healthy Workplaces Framework
- Portable Long Service Authority
- Victoria’s racing industry
- Workforce Inspectorate Victoria
- Liquor licensing, sale and supply
Communities
- Children
- First Peoples - State Relations
- Finding records
- Gender equality & women’s leadership
- LGBTIQA+ equality
- Multicultural communities
- Seniors Online
- Veterans support and commemoration
- Volunteering in Victoria
- Youth Central
Education and training
- Victorian Early Childhood Regulatory Authority
- Early childhood education – information for professionals
- Kinder: Best Start, Best Life
- Education – information for parents
- Schools.Vic - information for schools
- Education grants, programs, awards and events
- PROTECT
- TAFE, training and universities sector
- TAFE Victoria
- Victorian Skills Authority
- Apprenticeships Victoria
- Learn Local
Environment, water and energy
Finance and economy
Health and social support
- Family violence reform
- NDIS Worker Screening Check
- NDIS and disability services and support in Victoria
- Patient Review Panel
- Transforming Trauma Victoria
Housing and property
Law and justice
- Adoption
- Births, deaths and marriages
- Honorary justices
- Machete ban
- Safeguarding Victorians against terrorism
- Stolen Generations Reparations Package
- Victims of Crime
- Victorian Racing Tribunal
Safety and emergencies
- Emergency Recovery Victoria
- Victorian Emergency Relief and Recovery Foundation
- Emergency Recovery Resource Portal
- How well do you know fire
- Fire Services Reform
- Water safety
- Marine Search and Rescue
Science and technology
- Data sharing and open data
- Data.vic - discover and access Vic Gov open data
- Developer.Vic - portal for API developers
- Go.vic URL shortener
- Vic Gov IT project dashboard
- Victoria’s free public wi-fi network
- Cyber security in the Victorian Government
Sport and recreation
Traffic and transport
- Cameras Save Lives
- Transport Fines
- Getting Around
- Transport Planning
- Transport Future
- Climate Change and transport
- Future Directions For Transport
- Transport projects
- Ports and Freight
Working in the Victorian Government
- Single Digital Presence home
- Accommodation and Library Services
- Executive employment in the Victorian public sector
- Budget, procurement and funding
- Careers in the Victorian Government
- Council and Regulator Toolkit
- Guidelines for working in government
- Join a government network
- Standards and guidelines
- VicFleet CarPool
- Victorian Government style guide