Basic HTML Page Template (Copy & Paste)
Every website starts with this same skeleton. Copy it, save it as index.html, and open it in your browser. You just made a web page!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My First Website</title>
<meta name="description" content="A short line about this page.">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>My Website</h1>
<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
</nav>
</header>
<main>
<h2>Welcome!</h2>
<p>This is my first web page.</p>
<img src="photo.jpg" alt="Describe the photo">
</main>
<footer>
<p>© 2026 My Website</p>
</footer>
</body>
</html>
What each part does
- <!DOCTYPE html> tells the browser it is an HTML5 page.
- <meta name="viewport"> makes the page fit mobile screens. Never skip it.
- <title> and <meta name="description"> are what Google shows in search results.
- <link rel="stylesheet"> connects your CSS file for colours and layout.
- <header>, <main> and <footer> split the page into top, middle and bottom.
- alt on an image describes it for Google and for blind users.
How to put it online for free
- Make a folder and put index.html (and your images) inside.
- Go to Netlify and drag the folder onto the Deploys page.
- Netlify gives you a free link in a few seconds. You can connect your own domain later.
Next step: see the full list of HTML tags to learn what else you can add.