Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Nav Element
Nav Element

Nav is a HTML5 semantic element used to define a set of navigation links in a document. It contains major blocks of links but not all links.

Syntax

<nav>Links</nav>


You can define one or more than one nav in a document.



Practice Task

Open notepad or any other text editor, follow the following points.


  • Use <nav> element to create navigation links
  • Inside <nav> element create use <a> element to create 3 links
  • Assign text "Home" to link 1 and text "Tutorials" to link 2 and text "About" to link 3
  • Use CSS to style nav

save file with name task.html or task.htm and then open it using any browser and see results.