Favorites

About This Tutorial - HTML Tutorial

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Welcome! This tutorial teaches you how to build web pages with HTML and CSS, the two languages that every website is built on. It starts from the very beginning, so you don't need any previous experience.

How This Tutorial Works

HTML and CSS are taught together from the start, because that's how they are used in real life:

  • HTML describes what your content is: a heading, a paragraph, a list, a link, an image.
  • CSS describes how that content should look: colors, fonts, spacing and layout.

Learning them side by side means you learn modern habits from day one, instead of picking up old techniques that you later have to unlearn.

Each section is short and focused on one idea. Most sections include small examples that you can copy into a file, open in your browser and then change to see what happens. Trying the examples yourself is the quickest way to learn, so we recommend keeping a text editor open as you read.

What You'll Need

  • A modern web browser, such as Chrome, Edge, Firefox or Safari.
  • A plain text editor. Diving In shows you some good free options.

That's it. You don't need a web server, special software or an account anywhere. Everything in this tutorial runs from files on your own computer.

What You'll Learn

  • Getting Started: create your first page and learn how elements and attributes work.
  • Markup Basics: headings, paragraphs, text formatting, colors, links, images and lists.
  • Styling Basics: style sheets, classes, fonts, borders, spacing and alignment.
  • Tables: present data clearly in rows and columns.
  • Page Layout: semantic page structure, Flexbox, Grid and responsive design.
  • Forms: collect information from visitors with text fields, checkboxes, menus and buttons.
  • Good Practice: accessibility, web standards and where to go next.

What This Tutorial Doesn't Cover

  • JavaScript. JavaScript adds interactivity to web pages. It's a big subject of its own and is best learned once you are comfortable with HTML and CSS.
  • Server-side development. Languages such as PHP, Python or Node.js, and databases, are outside the scope of this tutorial. You will build forms, but processing the data they send happens on a server.
  • Advanced CSS. You'll learn the basics of Flexbox and Grid, but complex layouts, animation and CSS frameworks deserve their own dedicated guides.

Browser Support

Every example in this tutorial works in the current versions of all major browsers. Modern browsers update themselves automatically, so there are no workarounds for old browsers here, just clean, standard code.

License

This tutorial is available under the Creative Commons Attribution 3.0 Unported license. You're free to share and adapt it, even commercially, as long as you give appropriate credit.

Ready? Let's begin with Chapter 1, Getting Started.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee