HTML Tutorial - Learn HTML and CSS from Scratch
Welcome to the HTML Tutorial! HTML is the language used to build every page on the web. Together with CSS (Cascading Style Sheets), which controls how pages look, it's all you need to create your own websites.
This tutorial starts from the very beginning and assumes no previous experience. You'll learn modern, standards-based HTML and CSS step by step, with short examples you can try in your own browser. Each chapter builds on the one before, so if you're new, start at the top and work your way down.
Chapter Summary
- About This Tutorial
-
Level: All. How the tutorial works, what you'll need and what each chapter covers. If you'd rather dive straight in, skip ahead to Chapter 1, Getting Started.
- Chapter 1: Getting Started
-
Level: Beginner. Create your first web page, learn the basic structure every HTML document shares and find out how elements and attributes work. You'll also learn to use your browser's Developer Tools. If you've never written HTML before, start here.
- Chapter 2: Markup Basics
-
Level: Beginner. The core elements used on almost every page: the head, headings, paragraphs, text formatting, colors, links, images and lists. If you already know a little HTML, you can start here.
- Chapter 3: Styling Basics
-
Level: Beginner to Intermediate. Take control of how your pages look with CSS. Learn style sheets, the cascade, classes and IDs, fonts, borders, margins, padding and alignment.
- Chapter 4: Tables
-
Level: Intermediate. Present data clearly with accessible HTML tables, then style them with CSS so they look great and work on small screens.
- Chapter 5: Page Layout
-
Level: Intermediate. Structure whole pages with semantic elements, arrange content with Flexbox and Grid, and make your pages work on phones, tablets and desktops.
- Chapter 6: Forms
-
Level: Intermediate. Collect information from visitors with text fields, checkboxes, radio buttons, menus and buttons, and use built-in validation to catch mistakes.
- Chapter 7: Good Practice
-
Level: All. Make your pages usable by everyone with Accessibility Basics, learn how to check your code in Web Standards, and find out where to go next in Final Notes.