Lesson 1: Introduction to HTML

Welcome to the world of web development! In this chapter, we'll start with the basics of HTML, which stands for HyperText Markup Language. HTML is the building block of any web page. It's like the skeleton that holds the structure of your web content.

HTML is all about using tags to define elements. For instance, <h1> is a tag used to create a top-level heading, while <p> creates a paragraph.

Let's create your first HTML page:

  1. Open a text editor like Notepad (Windows) or TextEdit (Mac).
  2. Type the following:


<!DOCTYPE html>
<html>
<head>
    <title>Your First Web Page</title>
</head>
<body>
    <h1>Hello, World!</h1>
    <p>This is my first web page.</p>
</body>
</html>

  • Save it as index.html.
  • Double-click the file to open it in a web browser.