</>HTML & CSS

Learn HTML & CSS – all lessons

15 lessons from beginner to advanced, building on each other and with code examples.

Beginner
1

HTML Skeleton & Text

Document structure, headings, paragraphs, links, images and lists.

2

Semantic HTML & Page Structure

The right elements for header, navigation, content and footer – for people, search engines and screen readers.

3

Forms & Input Fields

Input types, labels, select fields and built-in validation.

4

Tables & Definition Lists

Mark up tabular data correctly and style it for readability.

5

CSS Basics: Rules, Colors & Type

Selectors and properties, units, colors and the cascade.

Intermediate
6

The Box Model

Content, padding, border, margin, box-sizing and display.

7

Selectors, Pseudo-classes & Specificity

Combinators, attribute and pseudo selectors and how conflicts are resolved.

8

Positioning & Stacking Order

relative, absolute, fixed, sticky and z-index.

9

Flexbox – One-Dimensional Layouts

Rows and columns with flexible items, alignment and spacing.

10

CSS Grid – Two-Dimensional Layouts

Columns, rows, areas and automatically responsive grids.

11

Responsive Design & Media Queries

Layouts that adapt to screen width and devices.

Advanced
12

CSS Variables & Theming

Custom properties, var(), calc() and design tokens for themes and dark mode.

13

Transitions & Animations

State transitions, keyframes, performance and consideration for motion sensitivity.

14

Accessibility (a11y)

Keyboard, screen readers, contrast and ARIA – making web pages usable for everyone.

15

Modern CSS: :has(), Nesting, Layers & Container Queries

Current features that make a lot of JavaScript and preprocessor code unnecessary.