The nav element is an important part of HTML5 and is used extensively for navigation purposes.
The nav element is used when there is a group of navigation links contained in a specific section of the page.
It is also used extensively where there are links to other pages or a part of the same page.
<html>
<body>
<header>
<h2> Importance of the Navigation element </h2>
</header>
<p> Use of the Nav element </p>
<hr>
<p> Navigation Start </p>
<nav>
<ul>
<li> <a href="www.google.com"> Google Publishing </li>
<li> <a href="http://readwrite.com/2011/06/04/free-e-books-on-html5"> Books on HTML5 </li>
<li> <a href="www.freerepublic.com/tag/articles:latest"> Latest Articles </li>
<li> <a href="news.google.co.in"> News </li>
</nav>
<br>
<footer>
<p> Copyright © 2013-2014 Prasanth Solutions . All rights reserved. </p>
<a HREF="/index.html">Index</a>
</footer>
</body>
</html>
Output
The nav element is used when there is a group of navigation links contained in a specific section of the page.
It is also used extensively where there are links to other pages or a part of the same page.
<html>
<body>
<header>
<h2> Importance of the Navigation element </h2>
</header>
<p> Use of the Nav element </p>
<hr>
<p> Navigation Start </p>
<nav>
<ul>
<li> <a href="www.google.com"> Google Publishing </li>
<li> <a href="http://readwrite.com/2011/06/04/free-e-books-on-html5"> Books on HTML5 </li>
<li> <a href="www.freerepublic.com/tag/articles:latest"> Latest Articles </li>
<li> <a href="news.google.co.in"> News </li>
</nav>
<br>
<footer>
<p> Copyright © 2013-2014 Prasanth Solutions . All rights reserved. </p>
<a HREF="/index.html">Index</a>
</footer>
</body>
</html>
Output
No comments:
Post a Comment