What is HTML ?
1.1 What is HTML ?
HTML (HyperText Markup Language) is the standard language used to create webpages. It provides the structure of a webpage, telling the browser what each part of the content means (headings, paragraphs, links, images, etc.).
1.2 Why It Matters ?
• Without HTML, browsers wouldn't know how to display text, images, or links.
• It acts as the skeleton of every website — CSS gives it style, JavaScript gives it interactivity.
• It acts as the skeleton of every website — CSS gives it style, JavaScript gives it interactivity.
1.3 Real-Life Analogy
Think of a house: 🔍
• HTML = the walls, rooms, and layout (structure).
• CSS = the paint, furniture, and decoration (style).
• JavaScript = electricity, doors, and appliances (interactivity).
• HTML = the walls, rooms, and layout (structure).
• CSS = the paint, furniture, and decoration (style).
• JavaScript = electricity, doors, and appliances (interactivity).
1.4 Example Code
example.html
1<!DOCTYPE html>
2<html>
3 <head>
4 <title>My First Webpage</title>
5 </head>
6 <body>
7 <h1>Hello, World!</h1>
8 <p>This is my very first webpage using HTML.</p>
9 </body>
10</html>
✅ Here,
• <!DOCTYPE html> → tells the browser this is an HTML5 document.
• <html> → root element.
• <head> → contains metadata (title, links, etc.).
• <body> → visible content of the page.
1.5 Key Takeaways
• HTML = HyperText Markup Language.
• It structures web content using elements (tags).
• Every website you visit is built with HTML.
• HTML works with CSS (style) and JavaScript (functionality).
• It structures web content using elements (tags).
• Every website you visit is built with HTML.
• HTML works with CSS (style) and JavaScript (functionality).