CodeZettaInterview Hub

HTML · Semantics · Mid-Level · Best Practice

Explain <nav> usage — one or many?

Short Interview Answer

Use nav for major navigation blocks; multiple navs are fine if labeled.

Detailed Explanation

Primary site nav, TOC, and pagination can each be nav. Distinguish with aria-label. Don't wrap every link list in nav.

Did you know this answer?