Img Role

Previous Heading role

An img (role) is used when a section of elements combine to form an image. In such scenario the container can be assigned the role of img and provide an alternate text description for it.

<div role=”img” alt=”alternate text for the group”>
<div>Elements of the group</div>
</div>
Next Link role

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.