1. What is HTML?
HTML stands for HyperText Markup Language.
- It is used to create web pages
- It gives structure to a website
- It tells the browser what to display
π In simple words:
HTML = Structure of a web page
2. Real-Life Example
Think of building a house π
- Bricks & structure β HTML
- Paint & design β CSS
- Electricity & functionality β JavaScript
π Without structure, the house cannot stand
π Without HTML, website cannot exist
What Does HTML Do?
HTML is used to:
- Add headings
- Add paragraphs
- Insert images
- Create links
- Build forms
π It defines what content should appear on the page
Β
4. Basic HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is my first web page</p>
</body>
</html>
Β
Β
5. Explanation of Code
<!DOCTYPE html>β Tells browser it’s HTML5<html>β Root element<head>β Contains title & meta info<title>β Page title (shown in tab)<body>β Visible content<h1>β Heading<p>β Paragraph
Β
Β
6. What are HTML Tags?
HTML uses tags to create elements.
π Example:
Β
<h1>Hello</h1>
Β
<h1>β Opening tag</h1>β Closing tag
π Tags tell browser what to display
Β
Β
7. Common Mistakes
β Forgetting closing tags
β Writing tags incorrectly
β Thinking HTML is a programming language
β HTML is a markup language, not programming language
Β
Β
8. Interview Questions
- What is HTML?
- What does HTML stand for?
- Is HTML a programming language?
- What are HTML tags?
- What is basic structure of HTML?
Β
Β
9. Mini Assignment
π Task:
- Create a simple HTML page
- Add:
- One heading
- One paragraph
π Example:
Β
<h1>My Name</h1>
<p>I am learning HTML</p>
<p>I am learning HTML</p>
Β
Β
————————————–
Β
Β
