What is the purpose of the <nav> element, and how is it used?

Instruction: Explain the significance and proper usage of the <nav> element in HTML5.

Context: This question evaluates the purpose, naming and appropriate scope of HTML navigation landmarks.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

nav identifies a significant navigation section, such as the site's main menu or a page table of contents. It is not required around every incidental group of links.

<nav aria-label="Primary"> <ul> <li><a href="/">Home</a></li> <li><a href="/catalog">Catalog</a></li> </ul> </nav> <nav aria-label="On this...

Related Questions