articles

Nav tag in HTML5

Anonymous User7065 21-Jul-2011

In HTML5 <nav> element is used to make group of links or navigation links. <nav> tag is supported only in html5. If we want a group of related links, then we will use <nav> tag. It has both start and end tag. In this example I had created three links and I want to define that links in <nav>tag, <nav> tag is used to to define section of navigation.

Code:
<head>
    <title>Nav tag</title>
</head>
<body>
<h1>This is a nav tag demo</h1>
<nav> <!--using nav tag to define group of links-->
<a href="http://www.mindstick.com">Home</a>
<a href="http://www.mindstick.com/DevelopersSection.aspx">Next</a>
<a href="http://www.mindstick.com/DevelopersSection.aspx">Prevoius</a>
</nav>
</body>
Screenshot

Nav tag in HTML5


Updated 07-Sep-2019
I am a content writter !

Leave Comment

Comments

Liked By