img with alt='' must not have role Web Standard

Description

An img element which has an alt attribute whose value is the empty string must not have a role attribute.

Help

If the image content is important then add ALT text, otherwise remove the role attribute.

Applicable standards

Change history

  • 6.41 Jul 2021 No longer allows role=presentation and role=none.
  • 5.20 Jan 2016 Added.

This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.

Rule ID: W3cHtmlImgNullAltWithRole