Discover how semantic HTML uses the nav element to group navigation links, improving accessibility and structure. Learn the purpose of nav, how screen readers and search engines interpret it, and how it differs from tags like div, main, or header. A quick, practical view.

Multiple Choice

Which of the following is a semantic HTML element used to group navigation links?

The concept here is using semantic HTML to indicate the purpose of a section. The <nav> element is specifically meant for grouping a set of navigation links. It signals to browsers, screen readers, and search engines that this part of the page helps users move around the site. Placing the links inside <nav> makes navigation areas easy to identify and provides a clearer structure, especially for assistive technologies. For example, a navigation bar might look like <nav><ul><li><a href="...">Home</a></li>...</ul></nav>. The other tags aren’t signaling navigation: a <div> is just a generic container with no implied meaning, <main> marks the primary content of the page, and <header> is typically the introductory area at the top that may contain branding or the main navigation but isn’t dedicated to grouping navigation links itself.

Navigation with meaning: why the