--- url: "https://www.w3.org/WAI/tutorials/images/decision-tree/" titulek: "An alt Decision Tree | Web Accessibility Initiative (WAI) | W3C" h1: "An alt Decision Tree" popis: "Accessibility resources free online from the international standards organization: W3C Web Accessibility Initiative (WAI)." jazyk: "en" kanonicka: "https://www.w3.org/WAI/tutorials/images/decision-tree/" drobecky: ["Home", "Design & Develop", "Tutorials", "Images", "An alt Decision Tree"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 23:31:51" znaku: 2136 slov: 308 kodovani: "utf-8" sha256: "6c7276d47251b1e9256d1850c84cb3b86fc7764f405d6bbf376ed11871bed296" --- - **Does the image contain text?** - **Yes:** - **… and the text is also present as *real* text nearby.** *Use an empty `alt` attribute. See [Decorative Images](/WAI/tutorials/images/decorative/).* - **… and the text is only shown for visual effects.** *Use an empty `alt` attribute. See [Decorative Images](/WAI/tutorials/images/decorative/).* - **… and the text has a specific function, for example is an icon.** *Use the `alt` attribute to communicate the function of the image. See [Functional Images](/WAI/tutorials/images/functional/).* - **… and the text in the image is not present otherwise.** *Use the `alt` attribute to include the text of the image. See [Images of Text](/WAI/tutorials/images/textual/#styled-text-decorative-effect).* - **No:** - Continue. - **Is the image used in a link or a button, and would it be hard or impossible to understand what the link or the button does, if the image wasn’t there?** - **Yes:** - *Use the `alt` attribute to communicate the destination of the link or action taken. See [Functional Images](/WAI/tutorials/images/functional/).* - **No:** - Continue. - **Does the image contribute meaning to the current page or context?** - **Yes:** - **… and it’s a simple graphic or photograph.** *Use a brief description of the image in a way that conveys that meaning in the `alt` attribute. See [Informative Images](/WAI/tutorials/images/informative/).* - **… and it’s a graph or complex piece of information.** *Include the information contained in the image elsewhere on the page. See [Complex Images](/WAI/tutorials/images/complex/).* - **… and it shows content that is redundant to *real* text nearby.** *Use an empty `alt` attribute. See (redundant) [Functional Images](/WAI/tutorials/images/functional/#logo-image-within-link-text).* - **No:** - Continue. - **Is the image purely decorative or not intended for users?** - **Yes:** - *Use an empty `alt` attribute. See [Decorative Images](/WAI/tutorials/images/decorative/).* - **No:** - Continue. - **Is the image’s use not listed above or it’s unclear what `alt` text to provide?** - This decision tree **does not** cover all cases. For detailed information on the provision of text alternatives refer to the [Images Tutorial](/WAI/tutorials/images/) . Back to Top