img with no alt cannot have a role Web Standard

Description

An img without an alt attribute cannot have a role attribute.

Help

Add an alt attribute describing the image, or use alt='' without a role if the image is purely decorative.

Applicable standards

Change history

  • 6.41 Jul 2021 Added.

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

Rule ID: W3cHtml5AriaProhibitedRoleForType-img-no-alt