How to write alt text that enhances the user experience

Images can guide a shopper, explain a government form, or help someone understand a place without relying on a caption. Text alternatives give that information to people using screen readers, refreshable braille displays, voice control, or limited-bandwidth connections. They also make an interface easier to interpret when an image fails to load or a browser blocks it.

Australian audiences encounter image-rich pages every day, from supermarket apps and local news to myGov and public transport information. A descriptive label can turn a decorative-looking tile into a useful guide, while an inaccurate one leaves someone guessing. These services carry changing prices, directions, and emergency notices, so alt text must connect visual detail to timely content rather than rely on a vague caption.

Useful alt text does not try to narrate everything visible. It identifies the meaning that would be lost if the image disappeared. That simple test keeps descriptions relevant, readable, and connected to the experience rather than the pixels alone.

Identify the image’s purpose

Images usually have one of three broad jobs: they convey information, support an action, or add atmosphere. An election-results infographic is informative; a magnifying-glass icon that opens search is functional; a soft background texture is decorative. The alt attribute should reflect that job. A meaningful image needs a text alternative, while a decorative image should have an empty alternative such as alt="" so assistive technology can skip it.

Begin by asking what a visitor would miss if the image vanished. On an Australian accommodation listing, a photo of a bedroom communicates its layout and condition more directly than “Spacious room available.” Name the important feature and connect it to the nearby heading. If the page already says “Ocean-view suite” in text, the photo may only need a short description that confirms the view rather than repeating the heading.

Specificity should follow relevance, not visual excess. “A yellow ute parked beside a red post box” may be accurate but useless on a vehicle sales page. “White utility vehicle with canopy, viewed from the driver’s side” tells a buyer what matters. “A graph of average rainfall by month” identifies a chart but does not replace a text summary. Decorative CSS backgrounds have no alt attribute, so essential meaning must appear in visible copy, captions, or nearby data.

Describe function in context

Images acting as controls need labels that name the outcome. When a camera icon starts a video call, “Start video call” is clearer than “Camera.” A map icon opening directions can say “Open map directions.” If an arrow alone appears in a link, its accessible name should still make sense out of context. Voice-control users may activate elements by saying the visible name, while screen reader users may hear the alternative without the surrounding cue.

Images used as links need alternatives that communicate the destination rather than their appearance. If a product card uses a picture of a blue hiking boot as the link, “View blue hiking boots” gives more purpose than “Blue hiking boot.” When a page cannot be found, the interface should explain the situation and offer a useful next step; this guide to intentional 404 design shows how a broken state can remain clear. Any retained image should describe information not already presented as text.

Text inside an image needs special care. A banner reading “Final days: 30% off” should have an accessible name that communicates the offer, while visible text must remain readable at every zoom level. Keep essential instructions in real HTML, then style them as an image if required. For a scanned document or handwritten note, provide a transcription nearby. A QR code can carry the alternative address in text, but it should not be the only route to that destination.

Support screen reader flow

Screen reader users move through a page as a sequence of names, roles, states, and descriptions. Alt text enters that sequence, so use ordinary sentence fragments and avoid phrases such as “image of” or “picture of.” A useful alternative fits naturally into the sentence: “The harbour at sunset” after a heading, or “Increase quantity” for a plus icon. If more explanation is needed, place a concise name in the image and a fuller description beside it.

Redundant alt text creates friction. If link text says “Download annual report,” an icon beside it may be decorative and receive alt="". If the image is the only label, it needs the full meaning. This also protects search engines from awkward keyword strings: accessible descriptions are clearer to readers and generally serve image search better than generic labels. “Red cycling helmet” carries more context than repeated uses of “product.”

Keep sentences understandable without imposing a rigid character limit that removes necessary context. Start with the subject, state the key visual fact, and add a qualifier only when it changes the meaning. Avoid “This is,” because the interface already identifies an image. Write “Stainless-steel water bottle with blue lid,” not “This is a picture of a stainless-steel water bottle with blue lid.” Read the alternative aloud; if it sounds like catalogue metadata, revise it.

Handle complex and sensitive images

Complex images require a hierarchy of information. A short alternative can identify a chart, map, diagram, or infographic, while a nearby table or long description provides the detail. For a bus route map, name the route and direction, then list stops and connections in linked text. Alt text should not squeeze an entire dataset into one attribute. This pattern suits an ABC News poll graphic, a Bureau of Meteorology forecast map, and a screenshot showing an online application step.

Photographs of people need context the layout may not provide. “Jordan Lee reviewing a design prototype in a Melbourne studio” is more useful than “Woman working” when surrounding copy does not establish identity or activity. Do not infer disability, ethnicity, gender, or health status from appearance. For Aboriginal and Torres Strait Islander communities, cultural permissions and approved language matter; alt text should use agreed wording and not expose restricted designs, ceremonies, or knowledge. Description supports access without becoming permission to reveal.

Brand marks need balanced treatment. The Australian Government logo can be named as “Australian Government logo” when it identifies the provider, and a Coles or Woolworths logo when the brand is the link’s visible subject. If a logo repeats text printed beside it, the alternative can be empty. For a sponsored panel, say “Advertisement” if sponsorship is not otherwise clear. These labels communicate commercial context, not merely a visual shape.

Make descriptions locally meaningful

Australian context changes which details deserve priority. In Sydney and Melbourne, commuters commonly check Opal or MYKI journey information, so a transport map may need to identify the line, direction, and interchange visible in the image. Nearby text should carry stop lists and service changes, with alt text providing an overview. Australia drives on the left, distances appear in kilometres, and temperatures are reported in Celsius; include those distinctions when they are central to the visual.

Retail pages present another common case. Woolworths and Coles grocery listings use small product photographs beside details such as package size and A$ prices. Alt text can identify “250 gram packet of jasmine rice,” while visible or linked text states the current price and promotion. For a variation chart, each selectable image needs a matching name, such as “Blue shirt, front view.” The description should identify the option without replacing time-sensitive price data.

Tourism and public-service imagery require precise context. A photograph of Uluru at sunset should be identified by the actual place shown, not generically called “Australian landscape.” A Great Barrier Reef tour image used as a link should name the experience rather than the scenery alone. On myGov or Centrelink pages, a screenshot might show a document upload control or security warning; its alternative needs to state the step or risk, with surrounding text providing the full instruction.

Accessibility is also a legal and procurement concern in Australia. The Disability Discrimination Act 1992 can apply when online goods or services are inaccessible, and Commonwealth services must follow the Digital Service Standard, including WCAG 2.1 AA. Private organisations should check applicable state and territory rules and federal guidance. Alt text cannot repair poor contrast, missing form labels, keyboard traps, or vague link text. Copyright and cultural protocols remain relevant to the image; accessibility does not remove attribution or consent obligations.

Build quality into publishing workflows

Writing alt text works best when it enters the publishing process before an image goes live. A content guide can define three fields: purpose, concise description, and long description where needed. Authors choose the purpose, writers create the alternative, and designers mark decorative images correctly. On image-heavy pages, reviewing the content model prevents every upload from receiving the same generic label. Automation can flag missing attributes, but human review is needed to judge meaning and tone.

Test with the page rather than the image alone. Navigate it with a keyboard, zoom to 200 per cent, inspect focus order, and listen to the main content with a screen reader. Check that image names make sense in sequence and links still describe their destination. Compare the rendered page with its content management system, since templates and translations can alter context. On an Australian news or retail site, seasonal campaigns, sold-out products, and revised promotions should trigger another check after publication.

Small sites benefit from the same discipline. A restrained personal domain can keep the visual hierarchy simple and give each photograph a defined purpose. Mischa Andriessen’s personal site demonstrates that minimal approach, where careful typography, whitespace, and selective imagery leave content easier to perceive. For every image, assess whether its disappearance would remove meaning, a function, or nothing. The answer determines whether it needs useful text, a concise label, an empty alternative, or a fuller nearby description. Alt text then becomes a quiet but essential part of a humane interface.