Difference between revisions of "Accessible name calc"

From Level Access Web Labs
Jump to navigation Jump to search
Line 28: Line 28:
 
<div>
 
<div>
 
   <a class="pseudo" href="#"> click here </a>
 
   <a class="pseudo" href="#"> click here </a>
 +
</div>
 +
<body>
 +
</html>
 +
 +
<h2>Link referencing aria-labelledby with pseudo content</h2>
 +
<div>
 +
  <a href="#" aria-labelledby="d1a"> click here </a>
 +
  <div id="d1a" class="pseudo"> pool </div>
 
</div>
 
</div>
 
<body>
 
<body>
 
</html>
 
</html>

Revision as of 15:09, 29 November 2016

Image with aria-label and alt

hello

having an accessible name of “here”.

Image with space for aria-label and alt

hello

having an accessible name of “ ”.

Image with null for aria-label and alt

hello

having an accessible name of “hello”.

Image with aria-labelledby with multiple id refs/h2>
Hello Here

Link with pseudo content

click here

Link referencing aria-labelledby with pseudo content

 <a href="#" aria-labelledby="d1a"> click here </a>
pool

<body> </html>