HTML Introduction
Learn what HTML is, why it is used, and how it works. A simple and beginner-friendly introduction to HTML with a clear example.
HTML is the starting point of web development.
Every website you see in a browser is built on HTML.
This lesson explains what HTML is, why it exists, and how it is used, without going into deep technical details.
What Is HTML?
HTML (HyperText Markup Language) is used to structure content on the web.
HTML tells the browser:
- What is a heading
- What is a paragraph
- What is an image, link, or form
- How content is arranged on a page
HTML does not control design or logic.
Its role is only to describe content structure.
Why HTML Is Needed
Without HTML:
- Browsers would not understand content
- Text, images, and links would have no meaning
- Web pages would not exist
HTML acts as the skeleton of a webpage.
How HTML Works
- You write HTML using tags
- Browser reads the HTML file
- Browser displays content based on tag meaning
HTML files are saved with the .html extension.
HTML Uses Tags
HTML uses tags enclosed in angle brackets.
Example:
<p>This is a paragraph</p>
<p>→ opening tag</p>→ closing tag- Content stays between tags
Some tags do not need closing tags.
Simple HTML Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="HTML introduction example">
<meta name="author" content="HTML Tutorial">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Introduction</title>
</head>
<body>
<h1>HTML Introduction</h1>
<p>This page explains the basics of HTML.</p>
</body>
</html>
Important Attributes Used
lang→ defines document languagecharset→ character encodingname→ metadata identifiercontent→ metadata valueviewport→ responsive behavior
Key Points to Remember
- HTML is easy to learn
- Tags define meaning, not appearance
- Browsers ignore extra spaces and line breaks
- HTML works together with CSS and JavaScript
Note
HTML is for structure only.
Design and interactivity come later using other technologies.