Rule

Embed accessible name

<embed> needs an accessible name.

Rule
embed-alt
WCAG 2.2
1.1.1 Non-text Content (opens in a new tab) (Level A)
Severity
Serious

What it checks

Every <embed> needs an accessible name, usually a title or aria-label. Without one, assistive technology can say nothing about what the plugin content shows. An embed of an image, animation or other non-text content with no name fails.

When a person decides

An embed that declares a text document, by a type such as text/html or application/pdf, or by a file extension such as .pdf when there is no type, is sent for review instead. A document carries its own text, so whether a text alternative is required is in question, but the embed should still be identified to the listener.

Example

Fails

<embed src="site-map.svg" type="image/svg+xml" width="600" height="400">

Passes

<embed src="site-map.svg" type="image/svg+xml" width="600" height="400"
  title="Site map: the visitor centre, car park and three walking trails">

The engine is tested against both examples.

How to fix it

Add a title or aria-label to the <embed> that says what it shows.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.