Summary -

In this topic, we described about the <nav> tag along with detailed example.

The <nav> tag was introduced in HTML 5. Specifies the navigation area. The <nav> tag represents a navigational area of an HTML document.

Navigation area contains a set of navigation links. The tag can be specified like <nav></nav> with the navigational elements in between the opening and closing tags.

There is no rule that all navigation links in between the <nav> tag.

Syntax -

<nav>.. text here.. </nav>

Example -

<!DOCTYPE html>
<html>
<head>
	<title>Nav Tag example.. </title>	
</head>
<body>
  <nav>
    <a href="html/">HTML</a> |
    <a href="tutorials/sap-abap/">SAP ABAP</a> |
    <a href="tutorials/sap-basis/">SAP BASIS</a> 
  </nav>
</body>
</html>

Output -