Lesson 1: Introduction to HTML

What is HTML?

HTML (HyperText Markup Language) is the backbone of web content. It provides the structure and meaning to web pages. Let's explore the basic structure of an HTML document:


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First Webpage</title>
</head>
<body>
    <h1>Welcome to My Webpage</h1>
    <p>This is a paragraph of text.</p>
</body>
</html>
                        

Let's Write Some HTML

Try creating a simple HTML document structure:

My First Web Page

Welcome to My Web Page

This is a paragraph of text.

Mini-Challenge

Enhance your HTML document by adding:

  • A second paragraph
  • An unordered list with three items
  • An image (you can use a placeholder URL like 'https://via.placeholder.com/150')

Quick Quiz

Which tag is used for the main heading in an HTML document?