Rule IMGDEC-1
Images should not be used for styling

Description

Best Practice Type: Pass/Warning

  • Each img element with an empty alt attribute should be removed and CSS techniques should be used provide the graphical styling effects.

Markup

img[alt] (HTML4)

Associated Accessibility Guidelines and Standards

Guideline or
Standard
Requirement Priority Test
Type
IITAA 1.1 Use valid, standard web programming code. Desirable Violation
Section 508 1194.22 (a) A text equivalent for every non-text element shall be provided (e.g., via "alt", "longdesc", or in element content). Required Violation
WCAG 1.0 11.1 Use W3C technologies when they are available and appropriate for a task and use the latest versions when supported. Required Violation
WCAG 2.0 1.1.1 Non-text Content Required Violation

Examples

Evaluation Techniues

Testsuite Tests

none