Revel
GitHub
GitHub
  • Overview

    • Getting started
    • FAQ
    • Release notes
  • Foundations

    • Meet the standard
    • Accessibility
    • Internationalization
    • Information hierarchy
    • Speed
  • Design

    • Visual principles
    • Colors
    • Space
    • Icons
    • Typography
  • Design tokens
  • Style helpers
  • Content

    • Express your ideas
    • Actionable language
    • Inclusive and accessible language
    • Alternative text
    • Grammar and mechanics
      • Basics
      • Capitalization
      • Dates and units of measurement
      • Punctuation
  • Components

    • Alert
    • Avatar
    • Badge
    • Button
    • Button group
    • Checkbox
    • Date Input
      • dates
      • datetimes
      • ranges
    • Field group
    • File upload
    • Flex
    • Grid
    • Icon
    • Image
    • Input
    • Loader
    • Modal
    • Month picker
    • Pagination
    • Popper
    • Radio
    • Repeater
    • Select
    • Tabs
    • Tile
    • Toast
    • Toggle
  • Directives

    • Click outside
    • Tooltip

Alternative text

Provide an inclusive and accessible experience to all your users.

Use alternative (alt) text to provide an inclusive and accessible experience to all your users. Screen reading software uses alt text to explain what images represent to users with low, or loss of vision. If images fail to download, alt text is also displayed.

When writing alt text, write concisely and avoid ambiguous terms. Use active voice and simple words with concise sentences.

Alt text for images

Use alt tags for all images.

Example
<img alt="Image that describes a person interacting with Revel." />

Icons and actions

Use the aria-label attribute to apply a description to icons and actions.

Example
<button aria-label="Close" onclick="myDialog.close()">X</button>

HTML language tag

Use the HTML lang attribute to ensure that speech synthesis and translation tools understand how to pronounce and translate your content.

Example
To specify that the language of the page is English, use: <html lang="en"></html>.
Edit this page
Last Updated: 7/6/23, 6:53 AM
Contributors: noon-dawg, Cesar Level, John Hannagan, Weetbix
Prev
Inclusive and accessible language
Next
Grammar and mechanics