Free beginner tutorial

HTML Tutorial for Beginners

HTML (HyperText Markup Language) describes the structure and meaning of web content. Learn the building blocks, create your first page, and follow practical lessons at your own pace.

What HTML does

HTML uses elements to organize text, links, images, lists, tables and forms. Browsers read this markup and present the page. CSS controls visual styling, and JavaScript can add interactive behavior.

Create a simple HTML page

Save this example as index.html, then open it in a browser:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My first page</title>
</head>
<body>
  <h1>Hello, web!</h1>
  <p>This is my first HTML page.</p>
</body>
</html>

Open the first-page demo in a new tab or continue to HTML editors.

Explore the HTML lessons

Use headings in a logical order, provide useful alternative text for informative images, and label form controls. These basics make pages easier to understand and use.