Multiple Navigation Groups in a Single nav Element
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
<style>
body > nav { text-align: center; padding: 2px; border : dashed thin black;}
</style>
</head>
<body>
<header>
<nav>
<h2>Shared</h2>
<ul>
<li><a href="#">Pellentesque habitant</a></li>
<li><a href="#">Morbi tristique senectus</a></li>
<li><a href="#">Aenean ultricies mi vitae est</a></li>
</ul>
<h2>Read</h2>
<ul>
<li><a href="#">Pellentesque habitant</a></li>
<li><a href="#">Morbi tristique senectus</a></li>
<li><a href="#">Aenean ultricies mi vitae est</a></li>
</ul>
<h2>Watched/Listened</h2>
<ul>
<li><a href="#">Pellentesque habitant</a></li>
<li><a href="#">Morbi tristique senectus</a></li>
<li><a href="#">Aenean ultricies mi vitae est</a></li>
</ul>
</nav>
</header>
</body>
</html>
Home
HTML CSS Book
HTML
HTML CSS Book
HTML
nav:
- <nav> for navigation
- Multiple Navigation Groups in a Single nav Element
- Making a Basic Document Outline
Related: