Skip to content

Commit

Permalink
Update images.mdx (withastro#6959)
Browse files Browse the repository at this point in the history
* Update images.mdx

* Update src/content/docs/en/guides/images.mdx

Co-authored-by: Sarah Rainsberger <[email protected]>

---------

Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Yan Thomas <[email protected]>
  • Loading branch information
3 people authored Feb 23, 2024
1 parent efc8847 commit 77a8013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ It returns an object with the following properties:

Not all users can see images in the same way, so accessibility is an especially important concern when using images. Use the `alt` attribute to provide [descriptive alt text](https://www.w3.org/WAI/tutorials/images/) for images.

This attribute is required for the `<Image />` component. `<Image />` will throw an error if no alt text is provided.
This attribute is required for both the `<Image />` and `<Picture />` components. If no alt text is provided, a helpful error message will be provided reminding you to include the `alt` attribute.

If the image is merely decorative (i.e. doesn’t contribute to the understanding of the page), set `alt=""` so that screen readers know to ignore the image.

Expand Down

0 comments on commit 77a8013

Please sign in to comment.