HTML Crash Course

Build the structure of a web page the right way. Document structure, text and links, images and media, forms, and semantic, accessible markup.

Beginner5 lessonsAbout 25 minFree

HTML is the skeleton of every web page. It tells the browser what each piece of content is: a heading, a paragraph, a link, a form. Get it right and styling, accessibility and search engines all get easier.

What you will learn

  • The structure every HTML document needs
  • Headings, paragraphs, lists and links
  • Images, video and responsive media
  • Forms with labels, validation and the right input types
  • Semantic elements and the basics of accessibility

Before you start

All you need is a text editor (VS Code is free) and a browser. Create a file called index.html, open it in the browser, and refresh after each change.

A quick, five-lesson introduction. For every HTML tag in depth, see the full HTML Tutorial. This crash course is the first in a short path: HTML, then CSS Crash Course, then JavaScript Crash Course.

Lessons

  1. 01Your first HTML document5 minElements, tags and attributes, the boilerplate every page needs, and what each line of it does.
  2. 02Text, lists and links5 minHeadings and their outline, paragraphs and inline text, ordered and unordered lists, and links to other pages, sections, email and files.
  3. 03Images and media5 minImages with good alt text, figures and captions, responsive images with srcset and picture, lazy loading, video, audio and embeds.
  4. 04Forms5 minCollect input with labels, the right input types, built-in validation, grouped options and buttons, and send it to a server.
  5. 05Semantic HTML and accessibility5 minLandmarks like header, nav, main and footer, articles and sections, tables for data, and a short checklist for accessible, search-friendly pages.