Which HTML5 semantic elements should you use to mark up the main sections of a page such as header, navigation, content, and footer?

Header, Nav, Content, Section, Footer

Header, Nav, Main, Section/Article, Footer

HTML5 semantic elements give meaning to the different regions of a page, making structure clear to browsers, assistive tech, and developers. For the main sections—header, navigation, content, and footer—the correct approach is to use header for the top area, nav for the navigation links, main for the central content area, and footer for the bottom area. Within the central content, you usually group related pieces with section elements or use article for standalone, distributable content. There isn’t a content element in HTML5, so marking the main content with main is the proper choice, and then using section or article for subdivisions.

That’s why the best option uses header, nav, main, section/article, and footer. Other choices flirt with non-existent or incorrect tags like content or navigation that isn’t the actual tag name, which doesn’t align with HTML5 semantics. This approach improves accessibility and the ability for search engines to understand the page structure.

Header, Navigation, Main, Section, Footer

Header, Nav, Main, Article, Footer

Want more questions?

All options are one-time payments.

$25.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99$171.99 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $171.99 usd value for $59.99! You save $106!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy