Introduction to HTML – The Building Block of Web

Learn what HTML is, why it’s important, and create your first web page

HTML (HyperText Markup Language) is the backbone of every website. It allows us to structure content on the web using elements and tags.

Key concepts:

  • Tags: The building blocks, e.g.,
<h1> <a> <p>
  • Attributes: Add extra information, e.g.,
<a href="https://example.com">Link</a>
  • Elements: The combination of tags and content

Example – Your first HTML page

<!DOCTYPE html>
<html>
<head>
    <title>CodeWithSaeqa</title>
</head>
<body>
    <h1>Welcome to CodeWithSaeqa!</h1>
    <p>This is your first HTML page.</p>
</body>
</html>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *