Alt text
In HTML code, alt text is the part of image tags and similar elements that should contain a reference to what is being expressed in the element shown. In addition to images, the alt attribute is also used for Java applets and input fields.
example
<img src="koelner-dom.jpg" height="250" width="300" alt="Der Kölner Dom im Abendlicht.">
This line of code usually represents the image koelner-dom.jpg
. If the image cannot be loaded or if the format is not supported by the web browser , the text "The Cologne Cathedral in the evening light." Is displayed instead . This is intended to convey the content of the image to visually impaired people or website visitors whose browser cannot display the image ( barrier-free Internet # text alternative to graphic information ). According to the official HTML specification, it is considered a deficiency to do without this alt text for images
On the right, an image example in Wikipedia with "| alt = ..." in the source text for the photo.
In the meantime, this alt text is also considered a criterion in on- page search engine optimization , because the search engines also use this text to record the content of images or films.
Individual evidence
- ↑ W3C : HTML 4.01 Specification: Introduction to objects, images, and applets , December 24, 1999
- ^ Accessibility - W3C
Web links
- Use the alt attribute to describe the function of each visual - Tips for Webmasters, W3C Quality Assurance (English)
- Alternative Text - Web Accessibility in Mind (English, German, French)