Difference between revisions of "ARIA img role"

From Level Access Web Labs
Jump to navigation Jump to search
(Created page with "<html> <body> <div role="img" aria-label="this is an ARIA label on a div"> </div> <span role="img" aria-label="this is an ARIA label on a span"> </span> </body </html>")
 
Line 1: Line 1:
 
<html>
 
<html>
 +
<style>
 +
  .box {
 +
    border: thin solid black;
 +
    background-color:green;
 +
    width:1em;
 +
    height:1em;
 +
  }
 +
</style>
 
<body>
 
<body>
<div 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>
  

Revision as of 19:31, 9 June 2016