Difference between revisions of "ARIA img role"

From Level Access Web Labs
Jump to navigation Jump to search
Line 12: Line 12:
 
</style>
 
</style>
 
<body>
 
<body>
 +
<h3>Div with role='img' and aria-label</h3>
 
<div class="box" role="img" aria-label="this is an ARIA label on a div">
 
<div class="box" role="img" aria-label="this is an ARIA label on a div">
 
</div>
 
</div>
  
 +
<h3>Span with role='img' and aria-label</h3>
 
<span class="box" role="img" aria-label="this is an ARIA label on a span">
 
<span class="box" role="img" aria-label="this is an ARIA label on a span">
 
</span>
 
</span>
 
</body
 
</body
 
</html>
 
</html>

Revision as of 19:33, 9 June 2016

Div with role='img' and aria-label

Span with role='img' and aria-label