Is there a best practice for providing ALT text to decorative and non-essential images?

  • 1
  • Question
  • Updated 3 years ago
For simple decorative images, what is the recommended method for providing ALT text?  Leaving out the attribute altogether is not appropriate, but should the ALT value itself be left blank?  or simply a character space?  Or a "#" null sign?

I suppose one could include something like "decorative line," but is there a simple value that will cause the image to be essentially ignored by assistive technology?

Photo of Chris P.

Chris P.

  • 8 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Bipin Pillai

Bipin Pillai

  • 8 Posts
  • 3 Reply Likes
Official Response
Hi Chris,

In case of decorative images, set the alt attribute as empty or null. For example, in HTML use <img src="url" alt=""> where src should be set to the path where the decorative image is available.

Hope that was useful.