HTML (HyperText Markup Language) is the foundation of every web page. It structures content like text, images, links, and forms.
1️⃣ Basic HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello World!</h1>
<p>This is a paragraph.</p>
</body>
</html>
Explanation:
⦁
<!DOCTYPE html> → Declares HTML5⦁
<html> → Root element⦁
<head> → Info about the page (title, meta)⦁
<body> → Visible content2️⃣ Headings and Paragraphs
<h1>Main Heading</h1>
<h2>Subheading</h2>
<p>This is a paragraph.</p>
3️⃣ Links and Images
<a href="https://google.com">Visit Google</a>
<img src="image.jpg" alt="Image" width="200">
4️⃣ Lists
<ul>
<li>HTML</li>
<li>CSS</li>
</ul>
<ol>
<li>Step 1</li>
<li>Step 2</li>
</ol>
5️⃣ Tables
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
6️⃣ Forms
<form>
<input type="text" placeholder="Your name">
<input type="email" placeholder="Your email">
<button type="submit">Submit</button>
</form>
7️⃣ Div & Span
⦁
<div> → Block-level container⦁
<span> → Inline container<div style="background: lightgray;">Box</div>
<span style="color: red;">Text</span>
💡 Practice HTML in a live editor like CodePen or JSFiddle to see instant results!
💬 Tap ❤️ for more!