Web Development · HTML

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>&copy; 2026 My Website</p>
  </footer>
</body>
</html>

What each part does

How to put it online for free

  1. Make a folder and put index.html (and your images) inside.
  2. Go to Netlify and drag the folder onto the Deploys page.
  3. 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.

← Back to Web Development