HTML

The foundational markup language for structuring content on the web.

Declarative
Beginner
1993
Tim Berners-Lee

Overview

HTML (HyperText Markup Language) is the standard markup language for documents displayed in web browsers. HTML5 added semantic elements, multimedia support, canvas drawing, and APIs for offline storage, geolocation, and more.

Key Features

  • Semantic elements — <article>, <nav>, <section> for meaningful structure
  • Multimedia — <video>, <audio>, <canvas> without plugins
  • Forms — Rich input types (date, email, range, color)
  • Accessibility — ARIA attributes for screen readers
  • SEO — Structured metadata with Open Graph, schema.org

Code Example

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Semantic HTML5</title>
</head>
<body>
  <header>
    <nav aria-label="Main navigation">
      <a href="/">Home</a>
      <a href="/about">About</a>
    </nav>
  </header>
  <main>
    <article>
      <h1>Understanding Semantic HTML</h1>
      <p>Semantic elements convey meaning to both browsers and developers.</p>
    </article>
  </main>
</body>
</html>

Learning Resources

Learning Path

10 topics across 3 sections

1Basics

2Semantic HTML

  • Semantic Elements — header, nav, main, article, section, aside, footer
  • Forms — Input types, labels, validation, and form submission
  • Accessibility — ARIA roles, landmarks, alt text, and screen reader support

3Modern HTML

  • Canvas & SVG — Drawing graphics, animations, and scalable vector graphics
  • Web Components — Custom elements, shadow DOM, and HTML templates
  • SEO & Meta — Open Graph, structured data, and meta tags