Question

    Which of the following semantic HTML tags is best suited

    for defining a block of navigation links?
    A < header > Correct Answer Incorrect Answer
    B < footer > Correct Answer Incorrect Answer
    C < nav > Correct Answer Incorrect Answer
    D < article > Correct Answer Incorrect Answer
    E < aside > Correct Answer Incorrect Answer

    Solution

    The < nav > tag is a semantic HTML element specifically designed to represent a section of navigation links within a web page. It improves the accessibility and structure of a webpage, making it clear to browsers and assistive technologies that the content within the < nav > tag is intended for navigation. < nav >   < ul >     < li > < a href="home.html" > Home < /a > < /li >     < li > < a href="about.html" > About < /a > < /li >     < li > < a href="contact.html" > Contact < /a >   < /ul > < /nav > This tag helps search engines and screen readers prioritize navigation content appropriately. ________________________________________ Why Other Options Are Incorrect: 1. < header > : The < header > tag is used for introductory content or a section heading, not for navigation links. 2. < footer >: The < footer > tag represents footer content, typically including copyright information or secondary navigation, but not primary navigation links. 3. < article >: The < article > tag is for self-contained content like blog posts or news articles, unrelated to navigation. 4. < aside >: The < aside > tag is used for content tangentially related to the main content, such as sidebars or advertisements.

    Practice Next