mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-17 20:11:54 +02:00
Update 1-getting-started-lessons/3-accessibility/README.md
Co-authored-by: Christopher Harrison <chrhar@microsoft.com>
This commit is contained in:
@@ -145,7 +145,6 @@ You can use `aria-label` to describe the link when the format of the page doesn'
|
|||||||
## Images
|
## Images
|
||||||
|
|
||||||
It goes without saying screen readers are unable to automatically read what's in an image. Ensuring images are accessible doesn't take much work - it's what the `alt` attribute is all about. All meaningful images should have an `alt` to describe what they are.
|
It goes without saying screen readers are unable to automatically read what's in an image. Ensuring images are accessible doesn't take much work - it's what the `alt` attribute is all about. All meaningful images should have an `alt` to describe what they are.
|
||||||
|
|
||||||
Images that are purely decorative should have their `alt` attribute set to an empty string: `alt=""`. This prevents screen readers from unnecessarily announcing the decorative image.
|
Images that are purely decorative should have their `alt` attribute set to an empty string: `alt=""`. This prevents screen readers from unnecessarily announcing the decorative image.
|
||||||
|
|
||||||
✅ As you might expect, search engines are also unable to understand what's in an image. They also use alt text. So once again, ensuring your page is accessible provides additional bonuses!
|
✅ As you might expect, search engines are also unable to understand what's in an image. They also use alt text. So once again, ensuring your page is accessible provides additional bonuses!
|
||||||
|
Reference in New Issue
Block a user