A test for adding context to a generic Read more link, by adding ARIA.
Last active
August 15, 2019 06:23
-
-
Save dotherightthing/9260710 to your computer and use it in GitHub Desktop.
[Read more with aria-describedby] #aria #accessibility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>aria-describedby test</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<h1>aria-describedby test</h1> | |
<article> | |
<header> | |
<h2 id="article-heading">Article Heading</h2> | |
</header> | |
<p>Some text</p> | |
<p> | |
<a href="#anchor" aria-describedby="article-heading article-description">Read more</a> | |
</p> | |
<p>Some more text</p> | |
<p id="article-description">Article description</p> | |
</article> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment