Skip to content

Do not automatically set alt and title atttributes of images #45

@thet

Description

@thet

During some WAI-ARIA work for a client we came across the automatic setting of title and alt attributes on images if those attributes are not already set.

The alt attribute is set to the description or the title
The title attribute is set to the title.

In many cases this makes little sense.
If the description is empty and the title was automatically set to the id of the image, both alt and title tag get the image id set. Screenreaders do read those information out loud. Users using screenreaders do not gain any useful information and are instead distracted from the content.

I suggest to remove the automatic setting at all or at least only the automatic setting for the alt tag if a description was defined.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions