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.

    <title>Nav tag</title>
<h1>This is a nav tag demo</h1>
<nav> <!--using nav tag to define group of links-->
<a href="">Home</a>
<a href="">Next</a>
<a href="">Prevoius</a>

Nav tag in HTML5

  Modified On Sep-07-2019 12:12:23 AM

Leave Comment