What is HTML?
HTML = HyperText Markup Language
It’s the structure of a website (like the skeleton 🦴).
HTML tells the browser what is what
Text, images, buttons, links, forms — all start with HTML
Basic HTML Structure (VERY IMPORTANT)
Every HTML page starts like this:
Html
<!DOCTYPE html>
<html>
<head>
<title>My First Website</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is my first website.</p>
</body>
</html>
Meaning:
<!DOCTYPE html> → tells browser this is HTML5
<html> → wraps the whole page
<head> → info about the page (title, styles)
<body> → everything you see on the website
HTML Tags
HTML uses tags:
<tagname>Content</tagname>
Example:
Html
<p>This is a paragraph</p>
Common HTML Tags (Must Know)
Headings
Html
<h1>Big heading</h1>
<h2>Smaller heading</h2>
<h3>Even smaller</h3>
Paragraph
Html
<p>This is a paragraph.</p>
Line Break
<br>
Links
<a href="[Link] to Google</a>
Images
<img src="[Link]" alt="My Image">
Buttons
<button>Click Me</button>
Lists
Unordered list (bullets):
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
Ordered list (numbers):
<ol>
<li>Wake up</li>
<li>Code</li>
<li>Sleep</li>
</ol>
Attributes
Extra info inside tags:
<a href="[Link]
href → link address
src → image source
alt → image description