Role group attribute for figure tag
-
Hello,
WCAG recommend to use a “role” attribute with “group” value for “figure” tag. This is for assistive technologies that don’t recognize “figure” tag.
An “aria-labelledby” on the “figure” tag referring to the id of “figcaption” tag should also be added.Could these attributes be added to WordPress?
Example:
<figure role="group" aria-labelledby="fig11"> <img src="castle-etching.jpg" alt="The castle has one tower, and a tall wall around it."> <figcaption id="fig11">Charcoal on wood. Anonymous, circa 1423.</figcaption> </figure>
Source: https://www.w3.org/WAI/tutorials/images/groups/#a-collection-of-images
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Role group attribute for figure tag’ is closed to new replies.