0

We testing our website for WCAG 2.0 Level A combability. We have yarns in different color shades hence the alt text would contain the name of the shade. But while testing we got an error.

error 1 - a warning on the use of "gray", but this error is erroneous

error 2 - error for an image without an alt description

Are we allowed to use the shade color name?

TylerH
  • 20,799
  • 66
  • 75
  • 101
  • Out of context it is hard to say whether your markup is correct, but you can use shades and colours to describe an object. The warnings are designed to stop people doing "please click the red button" type instructions. The first example I am 99% sure is fine but the second one doesn't actually show the `alt` - I am guessing the text after the `[...]` is `alt` text in which case it is fine. – GrahamTheDev Mar 09 '21 at 07:57
  • 1
    Does this answer your question? [Image alt attribute best practices](https://stackoverflow.com/questions/613173/image-alt-attribute-best-practices) – Vanita Mar 16 '21 at 15:08

0 Answers0