Home > DeveloperSection > Beginner > Nav tag in HTML5

Nav tag in HTML5


HTML5 HTML5 
Ratings:
0 Comment(s)
 3715  View(s)
Rate this:

Nav tag in HTML5

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


Don't want to miss updates? Please click the below button!

Follow MindStick