Web Analytics

HTML Page Layout

Intermediate ~12 min read

Semantic Page Structure

HTML5 introduced semantic elements that describe the purpose of content, making pages more meaningful to browsers, search engines, and screen readers.

Core Layout Elements

  • <header> - Introductory content, navigation
  • <nav> - Navigation links
  • <main> - Main unique content (only one per page)
  • <footer> - Footer content, copyright, links
HTML
CSS
JS

The Article Element

<article> represents independent, self-contained content that could be distributed separately (blog posts, news articles, comments).

HTML
CSS
JS

Section and Aside

  • <section> - Thematic grouping of content with a heading
  • <aside> - Content tangentially related (sidebars, pull quotes)
HTML
CSS
JS
SEO Benefit: Search engines use semantic elements to better understand your content structure and importance.

Quick Quiz

How many <main> elements should a page have?

A
One
B
Multiple
C
None required
D
Two