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
A beginner-friendly HTML learning path
Start with your first web page, then learn how elements and attributes work. Add headings, paragraphs, links and images. Once the basics feel familiar, continue with lists, tables, forms and semantic HTML.
What do I need to start learning HTML?
You only need a text editor and a web browser. Save your markup in a file ending in .html, then open it in the browser to see the page. No special software or internet connection is needed for these first examples.
After you can structure a page, continue with the CSS tutorial to style it, then explore the JavaScript tutorial to add behavior.