--- url: "https://www.w3.org/WAI/WCAG22/Techniques/failures/F65" titulek: "F65: Failure of Success Criterion 1.1.1 due to omitting the alt attribute or text alternative on img elements, area elements, and input elements of type \"image\" | WAI | W3C" h1: "Technique F65:Failure of Success Criterion 1.1.1 due to omitting the alt attribute or text alternative on img elements, area elements, and input elements of type \"image\"" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 03:50:18" znaku: 3040 slov: 422 kodovani: "utf-8" sha256: "084a6a8458acd72dcdec7e8c4b53ab6554d9f35eb03df33cb7b4c9eab6774248" --- # Technique F65:Failure of Success Criterion 1.1.1 due to omitting the alt attribute or text alternative on img elements, area elements, and input elements of type "image" ## About this Technique This technique relates to [1.1.1 Non-text Content](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content) (**Failure**). This failure applies to HTML. Failure techniques show examples of how content can fail particular WCAG success criteria. However, content may still satisfy those criteria if it includes equivalent/alternative content or functionality that **does** meet the normative requirements. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description This describes a failure condition for text alternatives on images. If there is no source of text to provide an alternative for the image then assistive technologies are not able to identify the image or to convey its purpose to the user. The `alt` attribute continues to be the preferred way to provide alternative text for images. Appropriate WAI-ARIA attributes may be used to provide alternative text, as long as they are accessibility supported. For more information about accessibility support, see [Documenting Accessibility Support](https://www.w3.org/WAI/WCAG22/Understanding/documenting-accessibility-support). The [Accessible Name and Description Computation](https://www.w3.org/TR/accname/) described the method of deriving text alternative from the HTML and WAI-ARIA attributes of an element. Some Assistive Technologies attempt to compensate for the missing text alternatives by reading the file name of the image. But it is insufficient to rely simply on the file name for many reasons. For example, file names may not be descriptive (e.g., `images/nav01.gif`), and technology specifications do not require descriptive file names. And some Assistive Technologies do not read the file name if there is no text alternative provided via HTML attributes. ## Examples ### Example 1: Missing text alternative In the code example below, the person using a screen reader would not know the purpose of the image. ``` ``` ## Related Resources *No endorsement implied.* - [Accessible Name and Description Computation](https://www.w3.org/TR/accname/) ## Tests ### Procedure Identify `img`, `area`, and `input` elements of type `image`. For each of these elements: 1. Check if the `alt` attribute is present. 2. Check if `aria-labelledby` attribute is present AND references one or more `id` attributes in the page AND check if `aria-labelledby` is [accessibility supported](https://www.w3.org/TR/WCAG22/#dfn-accessibility-supported) . 3. Check if the `aria-label` attribute is present AND check if `aria-label` is [accessibility supported](https://www.w3.org/TR/WCAG22/#dfn-accessibility-supported) . 4. Check if the `title` attribute is present AND check if `title` is [accessibility supported](https://www.w3.org/TR/WCAG22/#dfn-accessibility-supported) . ### Expected Results - If all of #1, #2, #3 and #4 are false then this failure condition applies. Back to Top