Update 1-getting-started-lessons/3-accessibility/README.md

Co-authored-by: Christopher Harrison <chrhar@microsoft.com>
This commit is contained in:
Jen Looper
2020-11-30 13:11:34 -05:00
committed by GitHub
parent 633183542f
commit 20631f7440

View File

@@ -145,7 +145,6 @@ You can use `aria-label` to describe the link when the format of the page doesn'
## 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.
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!