Your learning path
- Understand tagsElements are written as tags, like <p> for a paragraph or <h1> for a heading.
- Build a page skeletonEvery page needs a doctype, a head with its title, and a body with its content.
- Add links and imagesUse <a> to connect pages and <img> to show pictures with helpful alt text.
- 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.