---
title: "Comment by Ben Buchanan (200ok) on \"Introduction to Web Accessibility\" | Hashnode"
description: "Nice intro! :) Worth noting that the right content for ALT attributes varies a lot based on context. One useful guide I&#39;ve heard is to use ALT to provide wh"
url: "https://hashnode.com/posts/introduction-to-web-accessibility/5d023a8a37956c4915df4675/comment/5d04b532729bcc6307980c67"
---

[Discussion](https://hashnode.com/posts/introduction-to-web-accessibility/5d023a8a37956c4915df4675)

Comment [Introduction to Web Accessibility](https://hashnode.com/posts/introduction-to-web-accessibility/5d023a8a37956c4915df4675)

[Ben Buchanan (200ok)](https://hashnode.com/@200ok)

[Jun 15, 2019](https://hashnode.com/posts/introduction-to-web-accessibility/5d023a8a37956c4915df4675/comment/5d04b532729bcc6307980c67)

Nice intro! :)

Worth noting that the right content for ALT attributes varies a lot based on context. One useful guide I've heard is to use ALT to provide whatever information a sighted user might get from the image, in full context.

So your examples might be:

```
<img src="./lady.png" alt="Ms Aniekan Inyang">
<img src="./dog.png" alt="a cute dog sitting on a couch next to a cushion with the Google logo">
```

...depending on whether the lady's identity is the key point; or if the article was about dogs in Google offices.

Purely decorative images should get an empty ALT, eg. a lot of websites have banner images that add no real content at all and can be ignored by everyone including disabled users:

```
<img src="./generic-stock-photo.jpg" alt="">
```

WebAIM have a great guide on this: [webaim.org/techniques/alttext](https://webaim.org/techniques/alttext/)

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Jun 15, 2019](https://hashnode.com/posts/introduction-to-web-accessibility/5d023a8a37956c4915df4675/comment/5d04b532729bcc6307980c67#reply-5d05057d7839c0cf20d09361)

Yes, using ALT in images is actually a separate topic :) Thanks for the pointers and link

@lauragift21 wrote a beautiful article on this here: [giftegwuenu.com/guide-to-using-alternative-text-o…](https://www.giftegwuenu.com/guide-to-using-alternative-text-on-images/)
