Building Simple Webpages

What Is HTML?

HTML (HyperText Markup Language) is the backbone of every webpage. It defines the structure — the text, images, buttons, forms, and layout.

Your First HTML Page

<!DOCTYPE html>
<html>
<head>
  <title>My First Webpage</title>
</head>

<body>
  <h1>Hello World</h1>
  <p>This is my first webpage.</p>
</body>

</html>
      

Basic HTML Tags You MUST Know

Headings

<h1>Big title</h1>
<h2>Medium title</h2>
<h3>Smaller title</h3>
      

Paragraphs

<p>This is a paragraph.</p>
      

Links

<a href="https://google.com">Go to Google</a>
      

Images

<img src="image.png" width="200" />
      

Lists

Unordered list:
<ul>
  <li>Apple</li>
  <li>Banana</li>
</ul>
      
Ordered list:
<ol>
  <li>First</li>
  <li>Second</li>
</ol>
      

Buttons

<button>Click Me</button>
      

Simple Webpage Structure

This is a clean beginner-friendly webpage skeleton:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My Page</title>
</head>

<body>
  <h1>Welcome</h1>
  <p>This is a clean starting point for any webpage.</p>
</body>

</html>
      

HTML + CSS Example

You can mix HTML with CSS for styling:

<!DOCTYPE html>
<html>
<head>
  <style>
    body {
      background: #181818;
      color: white;
      font-family: Arial;
    }
  </style>
</head>

<body>
  <h1>Styled Page</h1>
  <p>CSS makes everything look better.</p>
</body>

</html>
      

What’s Next?

Next, you’ll learn how to manipulate HTML elements using JavaScript’s DOM features.