WCAG for Content

An illustration of a yellow circle with eyes, a nose and no mouth. It is holding a camera and a pen in its hands. It symbolises content creators.

Filter:

The WCAG criteria

Short description:

Decorative images that don’t convey information should be hidden from assistive technologies. For <img> elements, use an empty alt attribute (alt=””), and for <svg> elements, add aria-hidden=”true” so screen readers skip them.

 

Three illustrations of decorative graphics, shown next to an illustrated robot head representing a screen reader. The screen reader reads nothing because the images have no alt text.

Short description:

Images or graphics that share important information should have a text alternative — in the alt attribute or nearby text. Even pictures that express feelings or set a tone deserve meaningful descriptions.

 

Illustration in a Picasso-like style next to an illustrated robot head representing a screen reader. The screen reader comments on the artwork, saying: ‘A real Picasso!’

Short description:

Audio files require a transcript as an alternative format. For silent videos, either a video description or an audio file should be provided as an alternative.

 

Illustration showing two media types. On the left is an audio file icon labeled Only Audio. On the right is a silent video featuring a character making gestures, labeled Only Video, with a muted-audio symbol.

Short description:

Recorded videos require synchronized captions. For the captions to be complete, they should include not only the spoken words, but also the names of speakers, human sounds, and important noises such as music.

 

A video with captions

Short description:

Your videos need an audio description or a full-text alternative if they contain important information that is not conveyed in the audio track.

 

Short description:

Live broadcasts also require captions. These captions should convey the content and indicate who is speaking as well as any important sounds.

 

Illustration of a video with subtitles, showing a Live label in the top-left corner.

Short description:

If a video conveys important information only visually and not through sound, it requires an audio description. This can include details such as the speaker’s name when it appears on screen but is not spoken aloud.

 

Illustration of a video player showing two characters on screen, one square figure wearing sunglasses and one tall rectangular figure. An audio description bubble above the video says: Two figures smiling at each other; one of them is waving. The player controls include buttons for captions and audio description.

Short description:

Headings must be properly marked up in HTML using <h1> to <h6>. They should also follow a logical order, for example, an <h3> should appear above an <h1>.

 

Three headings are shown in the correct order: an H1 followed by an H2 and an H3.

Short description:

Avoid relying on sensory cues in your text. Phrases like »bottom left« are often unhelpful for screen reader users. Instead, focus on descriptive text, for example: “Click the ‘Order Now’ button!”

 

Illustration comparing unclear and clear instructions. The first line, marked with an X, says: Click the yellow, round button at the bottom. The second line, marked with a checkmark, gives the clearer instruction: Click the yellow ‘Order now’ button. Below is the yellow Order now button.

Short description:

Link text should be meaningful on its own. Vague links like “Learn more” are acceptable only if the surrounding context, such as a preceding heading or a <p> tag, provides enough information about the link’s destination.

 

Illustration of two buttons. One is labeled 'Click here' and is marked as unclear and incorrect. The other is labeled 'See all Products' and represents a clear, meaningful button label.

Short description:

Headings must clearly describe the content or purpose of the sections that follow. Similarly, form field labels must clearly indicate what information should be entered.

 

Illustration of two headings: one vague heading reading Here comes some really interesting stuff! and another more descriptive heading reading Our newest articles

Short description:

If hidden text is used to provide more detailed descriptions for links, buttons, or form fields, the visible text must be included in the hidden text, ideally starting in the same way.

 

Illustration comparing incorrect and correct ARIA labels. At the top, the visible link text 'Learn more' is shown. Below, a wrong example shows an anchor tag using aria-label 'Interesting stuff about digital accessibility!'. Under that, a correct example shows an anchor tag using an aria-label that repeats the visible link text: 'Learn more about digital accessibility'

Short description:

If a website includes sentences, phrases, quotes, or similar content in a different language, that text must be marked with the »lang« attribute and the appropriate language code.

 

A paragraph that includes a German phrase marked with the lang attribute.

Short description:

The labeling of interactive elements, such as links, buttons, and form fields, must be consistent across subpages when they perform the same function. Their appearance should also remain consistent.

 

Illustration showing two buttons with the same function. On the right, both buttons use the same label Go to account. On the left, the buttons lead to the same place but use different labels (go to account and go to profile), highlighting inconsistent naming.

Choose your role:

Back to all WCAG criteria