HTML HTML Tutorial HTML Forms HTML Graphics HTML Media HTML APIs HTML Tags



HTML Tag: nav

The HTML Tag: nav is used to define a section of a web page that contains navigation links. It is a semantic tag that helps search engines and screen readers to understand the purpose of the section. The nav tag is used to group together links that are related to the main navigation of the website. It is typically placed in the header or footer of a web page.

The HTML Tag: nav is a container tag that is used to group together navigation links. It is a semantic tag that helps to improve the accessibility and usability of a web page. The nav tag is used to define a section of a web page that contains navigation links. It is typically used in the header or footer of a web page. The nav tag is used to group together links that are related to the main navigation of the website. This helps to make the navigation of the website more organized and easier to use.

Example 1:

<nav>
  <a href="#">Home</a>
  <a href="#">About</a>
  <a href="#">Contact</a>
</nav>

Example 2:

<header>
  <nav>
    <a href="#">Home</a>
    <a href="#">About</a>
    <a href="#">Contact</a>
  </nav>
</header>

Example 3:

<footer>
  <nav>
    <a href="#">Home</a>
    <a href="#">About</a>
    <a href="#">Contact</a>
  </nav>
</footer>

Activity