Skip to content
Pebellslearn by building

The course

HTML

Learn how the web delivers pages and how to write the HTML that structures them. You will build real documents with headings, text, links, lists and attributes, the right way from the first line.

Ready to learn

Your path through the ideas

Inside the course

7 modules · 23 lessons
CLI tools & setup · Start here

Install your tools, choose your setup and verify a local run.

02The Web and Markup3 lessons

HTML is a markup language that describes the structure and meaning of web content. Browsers obtain that content through web requests and present it to users. Before writing tags, understand what markup is, how HTML, CSS and JavaScript split the work, and how a web address turns into a page on your screen.

  1. 01What Is a Markup Language?12 min
  2. 02HTML, CSS and JavaScript12 min
  3. 03How a Page Reaches You: Domains, DNS, HTTP and Hosting12 min
03HTML Syntax4 lessons

HTML syntax describes how tags, attributes, text and character references form a document that a browser can parse. Learn the shape of every element, how browsers read and forgive your markup, and the small rules about special characters, comments and spacing that trip up beginners.

  1. 01Tags, Elements and Attributes12 min
  2. 02How Browsers Read HTML12 min
  3. 03HTML Entities: Writing Special Characters12 min
  4. 04Comments and Whitespace12 min
04Document Structure4 lessons

An HTML document has a root element and sections for page metadata and page content; its doctype selects the browser's rendering mode. Every page shares the same frame: a doctype, one root element, a head that describes the page and a body that holds its content. Learn each part, then assemble a complete skeleton from memory.

  1. 01The Doctype and the html Element12 min
  2. 02head and body12 min
  3. 03The title and meta Tags12 min
  4. 04Capstone: A Complete Page Skeleton12 min
05Text Content5 lessons

Text elements describe the role of content, such as a heading, paragraph, emphasized phrase or link. Most of any page is text. Learn to mark up headings as an outline, separate paragraphs properly, choose between strong, em, b and i, use mark, sub and sup precisely, and write links that say where they lead.

  1. 01Headings: h1 to h612 min
  2. 02Paragraphs, Breaks, Rules and pre12 min
  3. 03strong, em, b and i12 min
  4. 04mark, sub and sup12 min
  5. 05Links: The a Element12 min
06Grouping and Attributes4 lessons

Grouping elements collect related content. Attributes add identity, classification or other information to an element. Learn when the meaningless div and span are the right tools, and how the id, class, data-* and style attributes let you name, group and annotate elements for CSS and JavaScript.

  1. 01Grouping with div and span12 min
  2. 02id and class12 min
  3. 03Data Attributes12 min
  4. 04The style Attribute12 min
07Lists3 lessons

A list represents a collection of items, an ordered sequence, or associations between terms and descriptions. Lists are everywhere on the web, from menus to recipes. Learn to pick between ordered and unordered lists by meaning, pair terms with descriptions, and nest lists correctly.

  1. 01Ordered and Unordered Lists12 min
  2. 02Description Lists12 min
  3. 03Nested Lists12 min
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.