nerdexam
CIW

1D0-720 · Question #1

Which HTML element is best suited for creating a navigation bar in a mobile webpage?

The correct answer is A. <nav>. <nav> is the semantically correct HTML5 element for navigation bars because it explicitly signals to browsers, screen readers, and search engines that the content contains navigation links - making it both accessible and SEO-friendly. <header> represents introductory content or…

Advanced HTML5 Features

Question

Which HTML element is best suited for creating a navigation bar in a mobile webpage?

Options

  • A<nav>
  • B<header>
  • C<footer>
  • D<div>

How the community answered

(26 responses)
  • A
    96% (25)
  • B
    4% (1)

Explanation

<nav> is the semantically correct HTML5 element for navigation bars because it explicitly signals to browsers, screen readers, and search engines that the content contains navigation links - making it both accessible and SEO-friendly. <header> represents introductory content or a page banner and may contain a nav, but isn't itself a navigation element. <footer> is for bottom-of-page content like copyright info and secondary links, not primary navigation. <div> is a generic container with no semantic meaning, so while it can wrap navigation links, it conveys nothing about their purpose to assistive technologies.

Memory tip: Think of <nav> as short for "navigator" - it's the element that literally navigates users around your site, so it's the only one with that job built in.

Topics

#Semantic HTML5#Navigation#HTML5 Elements#Mobile Web

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice