HTML Course

Lesson 1: Introduction to HTML

What is HTML?

HTML (HyperText Markup Language) is the standard language used to create web pages. It provides structure for your content and works alongside CSS (for styling) and JavaScript (for interactivity).

Basic HTML Document Structure

Every HTML page follows a basic structure:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My First Page</title>
</head>
<body>
  <h1>Hello World!</h1>
  <p>This is my first web page.</p>
</body>
</html>

Exercise

Create a page with your name as the title and a welcome message in the body.

  1. Open your code editor.
  2. Create a new file called lesson1.html.
  3. Type the HTML structure shown above.
  4. Replace <title>My First Page</title> with your name.
  5. In the <body>, write a welcome message.
  6. Save and open the file in your browser.