Learn HTML
A free interactive HTML course for beginners — with code examples and practical exercises. 12 lessons.
Start the course →What is HTML
What HTML is, why it exists, and what the simplest document looks like.
2HTML Document Structure
Lesson 2: what an HTML document is made of — <!DOCTYPE html>, html, head and body, and which parts are visible on the page. Example, task and exercise.
3Headings and Text
The h1-h6 heading tags and the p tag for text paragraphs.
4Links
Lesson 4: how to create links with <a> and href — to another page, to a section via #id, or to an external site in a new tab. Task and exercises.
5Images
Lesson 5: how to add images with <img>, what the src and alt attributes do and why alt matters for accessibility. Example, task and a gallery exercise.
6Lists
Unordered (ul) and ordered (ol) lists, and the li item element.
7Tables
The table, thead, tbody, tr, th, td structure for tabular data.
8Forms
form, input, label, button — the basic building blocks of a data-entry form.
9Semantic Elements
header, nav, main, article, footer instead of generic divs.
10head, title, and meta
Page metadata: title for the browser tab, meta for description and encoding.
11Linking CSS
Lesson 11: three ways to add CSS — an external file via <link rel="stylesheet">, a <style> block in head and the style attribute. Example and task.
12Your First Complete Web Page
Putting everything you've learned together into one real, finished HTML page.