Alternative text
Alternative text is textual content associated with non-text content that conveys its meaningful information or purpose to people who cannot perceive it visually.
Architecting Accessibility
Alternative text is a textual description or equivalent supplied for non-text content so its purpose and information can be conveyed without viewing it.
- How it is used
- Preserves an image’s information or function for assistive-technology users while keeping decorative images out of the reading flow.
- How deep it goes
- Works through decorative, informative, functional, complex, and interactive images, including HTML treatments and limits of long alt strings.
- Examples
- Contrasts a decorative hero image, PDF icon, Search button, poll chart, and linked campus map.
- What you can do after
- Build it from scratch by assigning purpose-specific alt values and supplying structured text when a short alternative cannot carry the information.
Read how Architecting Accessibility explains alternative text →
WordPress Power Toolkit: Harness AI to build next-level websites
Alternative text (alt text) is a textual description associated with an image that conveys its meaningful content when it cannot be seen or is read by assistive technology.
- How it is used
- Makes website images understandable to screen-reader users and provides a description when an image cannot display.
- How deep it goes
- Defines its purpose and gives WordPress field-entry steps, without developing rules for writing descriptions.
- Examples
- Uses the Media Library’s Edit Image screen and identifies Alt Text fields in image and gallery screens.
- What you can do after
- Apply it via WordPress image-editing fields, then check for image-description issues with Lighthouse.
Build a Website with ChatGPT
Semantic alternative text is prose marked as having a different voice, mood, or role from the surrounding regular text.
- How it is used
- Marks prose whose voice, mood, or role differs from surrounding text.
- How deep it goes
- Defines the distinction and demonstrates <i> markup and italic rendering, without developing further implementation details.
- Examples
- Uses a marked-up book title and names publication titles, technical terms, foreign phrases, and thoughts as further cases.
- What you can do after
- Practice/perform HTML markup that distinguishes a title or other alternative text from regular prose.
Read how Build a Website with ChatGPT explains alternative text →
Everyday Data Visualization
Text associated with an image or other non-text content that communicates its content for users who cannot perceive it visually, including through assistive software.
- How it is used
- Supports accessible data visualization by communicating images and charts to screen-reader users and people who cannot perceive them visually.
- How deep it goes
- Explains the definition, purpose, concise-writing guideline, chart example, and nearby data alternative without detailing platform-specific implementation.
- Examples
- Uses social-media images, HTML image tags, BI reports, and a bar graph contrasted with its unhelpful filename.
- What you can do after
- Apply it by writing concise image and chart descriptions and providing nearby tabular data for deeper exploration.
Read how Everyday Data Visualization explains alternative text →
Web Design Playground, Second Edition
Alternative text is textual content intended to be interpreted differently from the surrounding regular text, such as a title, technical term, foreign phrase, or thought.
- How it is used
- Marks semantically distinct prose and supplies accessible image descriptions or replacements.
- How deep it goes
- Explains i versus em, image fallback, and decorative-image handling, but stops short of broader accessibility guidance.
- Examples
- Uses book titles, technical terms, foreign phrases, thoughts, logos, and decorative images.
- What you can do after
- Apply it via HTML by marking alternative prose with i and adding useful or empty alt values to images.
Read how Web Design Playground, Second Edition explains alternative text →
Also covered in
What to know first
- digital imageA digital image is a digital representation of visual content, commonly encoded as an arrangement of pixels or other graphical elements.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- img elementThe HTML img element embeds an image resource in a document.
Related concepts
- complex imageused by · A complex image is a visual representation such as a chart, diagram, map, infographic, or flowchart whose meaning requires more than a short text alternative.
- screen readeruses · A screen reader is assistive software that presents digital content and interface information through synthesized speech or refreshable braille.
- assistive technologyuses · Assistive technology is hardware or software that enables people with disabilities to access, perceive, control, or interact with digital content and systems.
- decorative imageconfigures · A decorative image is an image that adds no information beyond content already available in the surrounding text or interface.
- i elementimplemented by · The i element is an HTML element that marks text set apart from surrounding prose by a different voice, mood, or semantic role.
- img elementpart of · The HTML img element embeds an image resource in a document.
Questions about alternative text
What is alternative text?
Alternative text is textual content associated with non-text content that conveys its meaningful information or purpose to people who cannot perceive it visually.
Which Manning books explain alternative text?
Architecting Accessibility, WordPress Power Toolkit: Harness AI to build next-level websites, Build a Website with ChatGPT, Everyday Data Visualization and Web Design Playground, Second Edition.
What should I know before learning alternative text?
Manning books that teach alternative text usually introduce digital image, CSS, HTML and img element first.
What is alternative text part of?
Alternative text is part of img element. The HTML img element embeds an image resource in a document.
What is alternative text also called?
Alternative text is also called alt attribute or alt text.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




