Embedded objects must have alternative text
An `<object>` that embeds a PDF, chart, animation or other content needs a text alternative, so people who cannot perceive the embedded content still know what it is.
| Rule ID | object-alt |
|---|---|
| Impact | Serious |
| Success criterion | 1.1.1 Non-text Content · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Fixed with a text: from the page or written by AI |
Example
<object data="/files/price-list-2026.pdf" type="application/pdf" width="600" height="400"></object>A screen reader skips the object or announces an unlabelled embedded region.
<object data="/files/price-list-2026.pdf" type="application/pdf" width="600" height="400" title="Price list 2026 (PDF)"></object>A screen reader announces “Price list 2026 (PDF)” when reaching the embedded document.
Why it matters
The <object> element embeds content the browser may hand to a plug-in or viewer: PDFs, SVG charts, old Flash animations, interactive diagrams. Screen readers often cannot reach inside that content, or can only do so after the user knows it is there. Without a name, blind users do not learn that the price list, timetable or chart exists at all.
When the embedded content cannot be shown, for example on a phone without a PDF viewer, everyone sees an empty box. A text alternative and a fallback link help those users as well.
How to fix it
Give the <object> a name, and provide fallback content for browsers that cannot display it.
Name the object. Use title, aria-label or aria-labelledby:
<h2 id="menu-heading">Lunch menu</h2>
<object data="/menu.pdf" type="application/pdf" aria-labelledby="menu-heading"></object>
Add fallback content. Text between the opening and closing tags appears when the object cannot load. Use it to offer a direct link:
<object data="/menu.pdf" type="application/pdf" title="Lunch menu (PDF)">
<a href="/menu.pdf">Download the lunch menu (PDF, 120 KB)</a>
</object>
Note that fallback content alone does not name the object for screen readers when the object loads, so keep the title too.
Charts and diagrams. Describe the key message in the name and give the full data in a table or text nearby.
Decorative objects. If the object is purely visual, add role="presentation" so it is ignored.
Prefer native elements. For images use <img>, for SVG use inline <svg>, for video use <video>. They have clearer accessibility support than <object>.
Checklist
- Give every object a title, aria-label or aria-labelledby.
- Add a fallback link inside the object element.
- Describe charts and provide the data in text.
- Use img, svg or video instead where possible.
How the check works
The check looks at every <object> with a data attribute that has loaded content. It passes when the object has an aria-label, an aria-labelledby that points to text, a non-empty title, or a role of none or presentation. Otherwise it is reported. Whether the text describes the content still needs a human check.
Resources
- Understanding 1.1.1 Non-text Content W3C
- W3C ACT rule 8fc3b6 W3C ACT
- Images tutorial W3C WAI
Updated October 27, 2026