Navigation <nav> Tag in HTML - HTML Tutorial

navigation tag in html

navigation tag in html

  • The <nav> tag specifies a group of navigation links.
  • All links of a document should not be inside a <nav> element.
  • The <nav> element is designed only for main block of navigation links.
  • The <nav> tag belongs to flow content, sectioning content and palpable content.
  • The <nav> tag supports Global Attributes and Event Attributes.

Syntax for <nav> tag:


Differences between HTML 4.01 and HTML5 for <nav> tag:

HTML 4.01

  • <nav> tag not supported in HTML4.


  • <nav> tag is new to HTML5.

Sample Coding for <nav> tag:

Tryit<!DOCTYPE html>
<html >
        <title>Wikitechy nav tag</title>
        <h2>Wikitechy Tutorials</h2>
            <a href="">HTML Tutorials</a>
            <a href="">CSS Tutorials</a>
            <a href="">PHP Tutorials</a>

Code Explanation for <nav> tag:

code explanation for navigation tag

  1. The <nav> tag is used to define the set of navigation links.
  2. <a> tag specifies a hyperlink to the “HTML Tutorials”.
  3. href attribute used to define the location of the linked document.

Output of <nav> tag:

output for navigation tag

  1. Set of tutorials list shown in a navigation.
  2. output for navigation tag

  3. When user click the link that navigate to the specified page.

Browser Support for <nav> tag:

6.0 6.0 4.0 5.0 11.1

Related Searches to Navigation Tag in html

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add to your ad blocking whitelist or disable your adblocking software.