-
-
Save oliverbenns/f67664dbd93ac4e23fd1 to your computer and use it in GitHub Desktop.
Using ARIA roles with <header>, <footer>, <aside> and <section>
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> | |
<body> | |
<header class="header" role="banner"> | |
<a href="/" rel="home">My company</a> | |
<nav class="nav" role="navigation"> | |
<a href="/about">About</a> | |
<a href="/contact">Contact</a> | |
</nav> | |
</header> | |
<section class="main" role="main"> | |
<h1>The meat and potatos</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
<a href="http://www.w3.org/TR/wai-aria/roles" target="_blank">Full list of ARIA roles here!</a> | |
</section> | |
<aside class="sidebar" role="complementary"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
</aside> | |
<footer class="footer" role="contentinfo"> | |
<p>© Copyright Ben Schwarz 2011</p> | |
</footer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment