You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I second that.
The alt attribute is most often used wrongly; it is the alternative textual representation for cases the image can't be displayed, and by default should be the empty string.
The title attribute is usually displayed as a tooltip when hovering with the mouse and should never be simply set to the value of the image id, "just to have a title". Such titles are distracting and should be avoided.
I removed the title but keeped the alt from description.
If you provide a alt text in TinyMCe this should be keeped.
Please test it in #49 or with the plip-file in coredev.
During some WAI-ARIA work for a client we came across the automatic setting of
title
andalt
attributes on images if those attributes are not already set.The
alt
attribute is set to the description or the titleThe
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
andtitle
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.
The text was updated successfully, but these errors were encountered: