📌 What is HTML?
HTML stands for HyperText Markup Language.
It is the basic building block of the web. Every website you see uses HTML to structure its content.
👉 HTML tells the browser what to show (text, images, links), not how it looks (that’s CSS).
🤔 Why Learn HTML?
-
🧱 It creates the structure of a webpage
-
🌍 It works in all browsers
-
🚀 It’s easy to learn and beginner-friendly
-
💼 It’s the first step to becoming a web developer
🧩 How HTML Works
HTML uses tags to define elements.
Example:
<h1>Hello World</h1>
📝 This tells the browser to display “Hello World” as a heading.
🏗️ Basic HTML Page Structure
Every HTML page follows a simple structure 👇
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome to HTML</h1>
<p>This is my first webpage.</p>
</body>
</html>
🔍 Explanation:
-
<!DOCTYPE html> → Tells browser this is HTML5
-
<html> → Root of the page
-
<head> → Page info (title, meta)
-
<body> → Visible content
🏷️ Common HTML Tags
| Tag | Purpose |
|---|---|
<h1> |
Heading |
<p> |
Paragraph |
<a> |
Link |
<img> |
Image |
<br> |
Line break |
Example:
<a href="https://example.com">Visit Website</a>
🎯 HTML is NOT…
❌ A programming language
❌ Used for styling
❌ Used for logic
👉 HTML is only for structure.
HTML builds the structure of web pages. It uses tags and elements. Easy to learn, powerful to use 💪