Difference between revisions of "Accessible name calc"

From Level Access Web Labs
Jump to navigation Jump to search
Line 50: Line 50:
 
</div>
 
</div>
  
 +
<h2>Link referencing parent with aria-labelledby</h2>
 +
<div>
 +
  <p id="d4a">Massive storm sweeps across nation
 +
  <a href="#" aria-labelledby="d4a"> click here </a>
 +
  </p>
 +
  <p>has an accessible name of "Massive storms sweeps across nation click here"
 +
</div>
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 15:18, 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

click here
pool

Link referencing aria-labelledby with display none including children

click here

has an accessible name of "pool location"

Link referencing aria-labelledby with visibility hidden including children

click here

has an accessible name of "pool"

Link referencing parent with aria-labelledby

Massive storm sweeps across nation click here

has an accessible name of "Massive storms sweeps across nation click here"