Learn How to HTML

HTML is the language that gives every web page its structure. Learn the basics in four small steps, no experience needed.

Your learning path

  1. Understand tagsElements are written as tags, like <p> for a paragraph or <h1> for a heading.
  2. Build a page skeletonEvery page needs a doctype, a head with its title, and a body with its content.
  3. Add links and imagesUse <a> to connect pages and <img> to show pictures with helpful alt text.
  4. Structure your contentLists, tables, headers and sections make pages easier to read and to navigate.

Your first page

Save this as index.html and open it in any browser:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>My first page</title>
</head>
<body>
  <h1>Hello, world!</h1>
  <p>I am learning HTML.</p>
</body>
</html>

Keep going

Practice a little every day: change the text, add a link, break something and fix it. The fastest way to learn HTML is to write it.