Learn HTML & CSS – all lessons
15 lessons from beginner to advanced, building on each other and with code examples.
HTML Skeleton & Text
Document structure, headings, paragraphs, links, images and lists.
Semantic HTML & Page Structure
The right elements for header, navigation, content and footer – for people, search engines and screen readers.
Forms & Input Fields
Input types, labels, select fields and built-in validation.
Tables & Definition Lists
Mark up tabular data correctly and style it for readability.
CSS Basics: Rules, Colors & Type
Selectors and properties, units, colors and the cascade.
The Box Model
Content, padding, border, margin, box-sizing and display.
Selectors, Pseudo-classes & Specificity
Combinators, attribute and pseudo selectors and how conflicts are resolved.
Positioning & Stacking Order
relative, absolute, fixed, sticky and z-index.
Flexbox – One-Dimensional Layouts
Rows and columns with flexible items, alignment and spacing.
CSS Grid – Two-Dimensional Layouts
Columns, rows, areas and automatically responsive grids.
Responsive Design & Media Queries
Layouts that adapt to screen width and devices.
CSS Variables & Theming
Custom properties, var(), calc() and design tokens for themes and dark mode.
Transitions & Animations
State transitions, keyframes, performance and consideration for motion sensitivity.
Accessibility (a11y)
Keyboard, screen readers, contrast and ARIA – making web pages usable for everyone.
Modern CSS: :has(), Nesting, Layers & Container Queries
Current features that make a lot of JavaScript and preprocessor code unnecessary.