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>
Next Link role