Horje
How to create HTML <nav> Element

The <nav> element defines a set of navigation links.

Notice that NOT all links of a document should be inside a <nav> element. The <nav> element is intended only for major blocks of navigation links.

Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content.

 


Example of HTML <nav> Element

A set of navigation links:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<nav>
  <a href="/html/">HTML</a> |
  <a href="/css/">CSS</a> |
  <a href="/js/">JavaScript</a> |
  <a href="/jquery/">jQuery</a>
</nav>

</body>
</html>

Output should be:

Example of HTML <nav> Element





Category:
Web Tutorial
Sub Category:
HTML Semantic
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference