This repository was archived by the owner on Jan 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
607 lines (592 loc) · 31.3 KB
/
Copy pathindex.html
File metadata and controls
607 lines (592 loc) · 31.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML for Absolute Beginners 🏗️</title>
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f4d6.png">
<style>
body {
font-family: 'Segoe UI', Arial, sans-serif;
margin: 0;
background: #f7fafd;
color: #222;
line-height: 1.7;
}
.main-nav {
background: linear-gradient(90deg, #81a4fd 0%, #b2fefa 100%);
padding: 0.7em 0;
text-align: center;
box-shadow: 0 2px 8px rgba(129,164,253,0.08);
position: sticky;
top: 0;
z-index: 100;
}
.main-nav a {
display: inline-block;
margin: 0 1.2em;
padding: 0.5em 1.2em;
text-decoration: none;
color: #1a237e;
font-weight: bold;
font-size: 1.1em;
border-radius: 6px;
transition: background 0.2s, color 0.2s;
}
.main-nav a.active, .main-nav a:hover {
background: #23272e;
color: #fff;
}
header {
background: linear-gradient(90deg, #a1ffce 0%, #fbc2eb 100%);
padding: 2.5rem 1rem 1.5rem 1rem;
text-align: center;
border-bottom-left-radius: 32px;
border-bottom-right-radius: 32px;
box-shadow: 0 2px 12px rgba(166,193,238,0.08);
}
header h1 {
font-size: 2.6rem;
margin: 0 0 0.5rem 0;
letter-spacing: 1px;
}
header p {
font-size: 1.25rem;
margin: 0;
color: #2d5c4d;
}
.author {
margin-top: 1.2rem;
font-size: 1.1rem;
color: #0a3d62;
letter-spacing: 0.5px;
font-weight: bold;
}
main {
width: 85%;
max-width: 1100px;
margin: 2rem auto 0 auto;
padding: 0 1rem 2rem 1rem;
}
section {
margin: 2.2rem 0;
border-radius: 18px;
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
padding: 2rem 1.5rem 1.5rem 1.5rem;
background: #fff;
}
section h2 {
margin-top: 0;
font-size: 1.6rem;
display: flex;
align-items: center;
gap: 0.6em;
letter-spacing: 0.5px;
}
.what { background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%); }
.why { background: linear-gradient(90deg, #b6f0ea 0%, #5ee7df 100%); }
.how { background: linear-gradient(90deg, #fbc2eb 0%, #a6c1ee 100%); }
.structure { background: linear-gradient(90deg, #c2e9fb 0%, #81a4fd 100%); }
.headings { background: linear-gradient(90deg, #fff1eb 0%, #ace0f9 100%); }
.paragraphs { background: linear-gradient(90deg, #b2fefa 0%, #0ed2f7 100%); }
.links { background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%); }
.images { background: linear-gradient(90deg, #a1ffce 0%, #faffd1 100%); }
.lists { background: linear-gradient(90deg, #b7ffea 0%, #7ed6df 100%); }
.tables { background: linear-gradient(90deg, #f5f7fa 0%, #c3cfe2 100%); }
.forms { background: linear-gradient(90deg, #fbc2eb 0%, #a6c1ee 100%); }
.projects { background: linear-gradient(90deg, #b2fefa 0%, #0ed2f7 100%); }
.challenges { background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%); }
.motivation { background: linear-gradient(90deg, #b6f0ea 0%, #5ee7df 100%); text-align: center; }
pre {
background: #23272e;
color: #fff;
padding: 1em;
border-radius: 8px;
overflow-x: auto;
font-size: 1em;
margin: 1em 0 0.5em 0;
box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
code {
font-family: 'Fira Mono', 'Consolas', monospace;
font-size: 1em;
}
.output {
background: #e7f9ed;
color: #1b5e20;
border-left: 4px solid #43e97b;
padding: 0.7em 1em;
border-radius: 0 8px 8px 0;
margin-bottom: 1em;
font-size: 1em;
}
.analogy {
background: #e3f0ff;
border-left: 4px solid #81a4fd;
padding: 0.7em 1em;
border-radius: 0 8px 8px 0;
margin-bottom: 1em;
font-size: 1em;
color: #1a237e;
}
.tip {
background: #e0f7fa;
color: #006064;
border-left: 4px solid #00bcd4;
padding: 0.7em 1em;
border-radius: 0 8px 8px 0;
margin-bottom: 1em;
font-size: 1em;
font-style: italic;
}
.mini-card {
background: #fff1eb;
border-radius: 10px;
padding: 1em;
margin: 1em 0;
box-shadow: 0 1px 6px rgba(0,0,0,0.07);
max-width: 300px;
text-align: center;
border: 2px solid #a6c1ee;
}
.element-details {
margin-top: 1em;
padding: 1em;
background: #f0f7fa;
border-left: 4px solid #00bcd4;
border-radius: 0 8px 8px 0;
font-size: 0.9em;
color: #006064;
}
.element-details ul {
list-style: none;
padding: 0;
margin: 0;
}
.element-details li {
margin-bottom: 0.5em;
position: relative;
}
.element-details b {
font-weight: bold;
color: #007bff;
}
.element-details .tip {
background: #e0f7fa;
color: #006064;
border-left: 4px solid #00bcd4;
padding: 0.7em 1em;
border-radius: 0 8px 8px 0;
margin-bottom: 1em;
font-size: 1em;
font-style: italic;
}
@media (max-width: 600px) {
.main-nav a { font-size: 1em; padding: 0.5em 0.5em; margin: 0 0.3em; }
main { padding: 0 0.2rem 2rem 0.2rem; }
section { padding: 1.2rem 0.5rem 1rem 0.5rem; }
header h1 { font-size: 1.4rem; }
section h2 { font-size: 1.1rem; }
pre { font-size: 0.95em; }
}
footer {
text-align: center;
padding: 1.2rem 0 1.5rem 0;
color: #0a3d62;
font-size: 1.1rem;
background: #e3f0ff;
border-top: 2px solid #b2fefa;
margin-top: 2rem;
letter-spacing: 0.5px;
}
</style>
</head>
<body>
<nav class="main-nav">
<a href="index.html" class="active">HTML Guide</a>
<a href="css-beginner-guide.html">CSS Guide</a>
<a href="javascript-beginner-guide.html">JavaScript Guide</a>
</nav>
<header>
<h1>HTML for Absolute Beginners 🏗️</h1>
<p>Build your first web pages step-by-step in a fun and visual way!</p>
<div class="author">Created by Wajih Shaikh</div>
</header>
<main>
<section class="first-steps" style="background:linear-gradient(90deg,#fff1eb 0%,#ace0f9 100%);margin-top:2em;">
<h2>👋 Welcome! Your First Steps in Coding</h2>
<p>
You don’t need any experience to start! Coding is just giving instructions to a computer. You can do it!
</p>
<ol>
<li>Open <b>Notepad</b> (Windows), <b>TextEdit</b> (Mac), or try an online editor like <a href="https://codepen.io/" target="_blank">CodePen</a>.</li>
<li>Copy the code below and save it as <code>my-first-page.html</code> on your desktop.</li>
<li>Double-click the file to open it in your browser. 🎉</li>
</ol>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>I am learning to code!</p>
</body>
</html>
</code></pre>
<div class="output">You should see a big “Hello, world!” and a short message.</div>
<div class="tip">🌟 Start with HTML, then try the CSS and JavaScript guides using the menu above!</div>
</section>
<section class="what">
<h2>1. 🧱 What is HTML?</h2>
<div class="analogy">🏠 <strong>Analogy:</strong> HTML is like the building blocks or skeleton of a house. It gives your website structure!</div>
<p><strong>HTML</strong> stands for <strong>HyperText Markup Language</strong>. It tells the browser what things are: headings, paragraphs, images, and more.</p>
<pre><code><h1>Hello, world!</h1>
<p>This is my first web page.</p></code></pre>
<div class="output">This creates a big heading and a paragraph.</div>
</section>
<section class="why">
<h2>2. 🌟 Why Use HTML?</h2>
<ul>
<li>It’s the foundation of every website</li>
<li>Lets you add text, images, links, and more</li>
<li>Easy to learn and start building right away</li>
</ul>
<div class="output">Without HTML, there would be no web pages!</div>
</section>
<section class="how">
<h2>3. 🖥️ How HTML Works</h2>
<div class="analogy">🌐 <strong>Browser:</strong> Like a TV for your website. HTML is the script, and the browser shows the story!</div>
<ul>
<li>HTML uses <strong>tags</strong> (like <h1>, <p>, <img>) to tell the browser what to show.</li>
<li>Tags usually come in pairs: <code><tag>content</tag></code></li>
</ul>
<pre><code><p>This is a paragraph.</p></code></pre>
<div class="output">The browser shows the text as a paragraph.</div>
</section>
<section class="structure">
<h2>4. 🏗️ Basic Structure of an HTML Page</h2>
<div class="analogy">📦 <strong>Analogy:</strong> Like a box with a lid and a label. Every HTML page has a head (info) and a body (what you see).</div>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Welcome!</h1>
<p>This is my page.</p>
</body>
</html></code></pre>
<div class="output">This is the basic setup for every HTML file.</div>
</section>
<section class="headings">
<h2>5. 🏷️ Headings</h2>
<div class="analogy">🔠 <strong>Headings:</strong> Like titles and subtitles in a book. They help organize your page.</div>
<pre><code><h1>Biggest Heading</h1>
<h2>Smaller Heading</h2>
<h3>Even Smaller</h3></code></pre>
<div class="output">Use <code>h1</code> for main titles, <code>h2</code> for sections, <code>h3</code> for sub-sections, and so on.</div>
<details class="element-details"><summary>Learn More: <h1> to <h6> Headings</summary>
<ul>
<li><b>What is it?</b> Headings are used for titles and section names. <code><h1></code> is the biggest, <code><h6></code> is the smallest.</li>
<li><b>Key Attributes:</b> None (just the tag itself).</li>
<li><b>Example:</b> <code><h2>My Section</h2></code></li>
<li><b>What it looks like:</b> Big, bold text for titles.</li>
<li><b>Common Mistakes:</b> Using <code><h1></code> more than once per page, skipping heading levels.</li>
<li><b>Tip:</b> Use headings to organize your content for both people and search engines.</li>
</ul>
</details>
</section>
<section class="paragraphs">
<h2>6. 📄 Paragraphs</h2>
<div class="analogy">✏️ <strong>Paragraphs:</strong> Like sentences and paragraphs in a story.</div>
<pre><code><p>This is a paragraph of text.</p></code></pre>
<div class="output">Use <code><p></code> for any block of text.</div>
<details class="element-details"><summary>Learn More: <p> Paragraph</summary>
<ul>
<li><b>What is it?</b> A paragraph is a block of text, like a sentence or group of sentences.</li>
<li><b>Key Attributes:</b> None (just the tag itself).</li>
<li><b>Example:</b> <code><p>Hello, world!</p></code></li>
<li><b>What it looks like:</b> Regular text, separated from other paragraphs by space.</li>
<li><b>Common Mistakes:</b> Forgetting the closing <code></p></code> tag.</li>
<li><b>Tip:</b> Use paragraphs to break up your text for easier reading.</li>
</ul>
</details>
</section>
<section class="links">
<h2>7. 🔗 Links</h2>
<div class="analogy">🔗 <strong>Links:</strong> Like doors to other pages or websites!</div>
<pre><code><a href="https://www.example.com">Visit Example</a></code></pre>
<div class="output">Clicking this takes you to another website.</div>
<details class="element-details"><summary>Learn More: <a> Link</summary>
<ul>
<li><b>What is it?</b> A link lets you jump to another page or website.</li>
<li><b>Key Attributes:</b> <code>href</code> (where the link goes), <code>target</code> (open in new tab).</li>
<li><b>Example:</b> <code><a href="https://google.com" target="_blank">Google</a></code></li>
<li><b>What it looks like:</b> Clickable, usually blue and underlined.</li>
<li><b>Common Mistakes:</b> Forgetting <code>href</code>, broken URLs.</li>
<li><b>Tip:</b> Use <code>target="_blank"</code> to open links in a new tab.</li>
</ul>
</details>
</section>
<section class="images">
<h2>8. 🖼️ Images</h2>
<div class="analogy">🖼️ <strong>Images:</strong> Like adding photos to your scrapbook.</div>
<pre><code><img src="cat.jpg" alt="A cute cat"></code></pre>
<div class="output">Shows a picture of a cat (if cat.jpg exists).</div>
<details class="element-details"><summary>Learn More: <img> Image</summary>
<ul>
<li><b>What is it?</b> Shows a picture on your web page.</li>
<li><b>Key Attributes:</b> <code>src</code> (image file), <code>alt</code> (description), <code>width</code>, <code>height</code>.</li>
<li><b>Example:</b> <code><img src="cat.jpg" alt="A cute cat" width="200"></code></li>
<li><b>What it looks like:</b> Shows a 200-pixel wide picture of a cat.</li>
<li><b>Common Mistakes:</b> Wrong file name, missing <code>alt</code>.</li>
<li><b>Tip:</b> Always use <code>alt</code> for accessibility!</li>
</ul>
</details>
</section>
<section class="lists">
<h2>9. 📋 Lists</h2>
<div class="analogy">📝 <strong>Lists:</strong> Like a shopping list or a list of steps.</div>
<pre><code><ul>
<li>Milk</li>
<li>Eggs</li>
</ul>
<ol>
<li>First</li>
<li>Second</li>
</ol></code></pre>
<div class="output"><code><ul></code> is for bullet lists, <code><ol></code> is for numbered lists.</div>
<details class="element-details"><summary>Learn More: <ul>, <ol>, <li> Lists</summary>
<ul>
<li><b>What is it?</b> Lists group items together. <code><ul></code> is unordered (bullets), <code><ol></code> is ordered (numbers), <code><li></code> is a list item.</li>
<li><b>Key Attributes:</b> None for <code><ul></code> or <code><ol></code>. <code><li></code> is used inside them.</li>
<li><b>Example:</b> <code><ul><li>Apple</li><li>Banana</li></ul></code></li>
<li><b>What it looks like:</b> A bulleted or numbered list.</li>
<li><b>Common Mistakes:</b> Forgetting to close <code><li></code> or nesting lists incorrectly.</li>
<li><b>Tip:</b> Use lists for steps, items, or menus.</li>
</ul>
</details>
</section>
<section class="tables">
<h2>10. 📊 Tables</h2>
<div class="analogy">📊 <strong>Tables:</strong> Like a grid or spreadsheet for organizing info.</div>
<pre><code><table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alex</td>
<td>13</td>
</tr>
</table></code></pre>
<div class="output">This makes a simple table with two columns.</div>
<details class="element-details"><summary>Learn More: <table> Tables</summary>
<ul>
<li><b>What is it?</b> Tables organize data in rows and columns.</li>
<li><b>Key Tags:</b> <code><table></code> (table), <code><tr></code> (row), <code><th></code> (header cell), <code><td></code> (data cell).</li>
<li><b>Example:</b> <code><table><tr><th>Name</th><th>Age</th></tr><tr><td>Alex</td><td>13</td></tr></table></code></li>
<li><b>What it looks like:</b> A grid of rows and columns.</li>
<li><b>Common Mistakes:</b> Forgetting to close tags, mixing up <code><th></code> and <code><td></code>.</li>
<li><b>Tip:</b> Use tables for data, not for layout.</li>
</ul>
</details>
</section>
<section class="forms">
<h2>11. 📝 Forms</h2>
<div class="analogy">📝 <strong>Forms:</strong> Like a sign-up sheet or survey. Lets people type info.</div>
<pre><code><form>
<input type="text" placeholder="Your name">
<button>Submit</button>
</form></code></pre>
<div class="output">This makes a simple form with a text box and button.</div>
<details class="element-details"><summary>Learn More: <form> Forms</summary>
<ul>
<li><b>What is it?</b> Forms let users send information (like sign-ups or surveys).</li>
<li><b>Key Tags/Attributes:</b> <code><form></code>, <code><input></code> (type, placeholder), <code><button></code>.</li>
<li><b>Example:</b> <code><form><input type="email" placeholder="Email"><button>Send</button></form></code></li>
<li><b>What it looks like:</b> A box to type in and a button to click.</li>
<li><b>Common Mistakes:</b> Forgetting <code>type</code> on <code><input></code>, missing <code>placeholder</code>.</li>
<li><b>Tip:</b> Use <code>type="email"</code> for email fields, <code>type="password"</code> for passwords.</li>
</ul>
</details>
</section>
<section class="projects">
<h2>12. ✅ Mini Projects</h2>
<div class="mini-card">
<h3>Profile Card</h3>
<div style="background:#fbc2eb;padding:1em;border-radius:8px;">
<h2>Alex</h2>
<p>I love cats and coding!</p>
</div>
</div>
<div class="mini-card">
<h3>Simple Web Page</h3>
<div style="background:#a6c1ee;padding:1em 2em;border-radius:8px;">
<h1>Welcome!</h1>
<p>This is my first web page.</p>
</div>
</div>
</section>
<section class="challenges">
<h2>13. 🎓 Practice Challenges</h2>
<ul>
<li>Make a page with your name and a picture</li>
<li>Add a list of your 3 favorite foods</li>
<li>Make a link to your favorite website</li>
<li>Create a table with 2 rows and 2 columns</li>
<li>Make a form with a name and email field</li>
</ul>
<div class="tip">📝 Try these in your own HTML file or CodePen!</div>
</section>
<section class="motivation">
<h2>14. 💬 Motivational Closing</h2>
<p style="font-size:1.3em;">Every website starts with HTML. Keep practicing, have fun, and remember: <strong>You can do it!</strong> 🏗️</p>
<div class="tip">🌟 HTML is your website’s foundation. Build something amazing!</div>
</section>
<section class="mistakes" style="background:linear-gradient(90deg,#fbc2eb 0%,#a6c1ee 100%);">
<h2>15. 🐞 Common Mistakes & Debugging</h2>
<ul>
<li>Forgetting closing tags (e.g., <code></p></code>)</li>
<li>Misspelling tag names (e.g., <code><titel></code> instead of <code><title></code>)</li>
<li>Saving as <code>.txt</code> instead of <code>.html</code></li>
<li>Not refreshing the browser after saving changes</li>
</ul>
<div class="tip">If your page looks wrong, check your code carefully. Everyone makes mistakes—don’t give up!</div>
</section>
<section class="glossary" style="background:linear-gradient(90deg,#b6f0ea 0%,#5ee7df 100%);margin:2em 0;padding:2em 1em;border-radius:18px;">
<h2>16. 📚 Glossary</h2>
<p style="font-size:1.1em;">Here are some important words you’ll see in HTML. Each card explains what the word means in simple language.</p>
<div style="display:flex;flex-wrap:wrap;gap:1.5em;justify-content:center;">
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;min-width:180px;max-width:260px;flex:1 1 180px;margin-bottom:1em;">
<h3 style="margin-top:0;margin-bottom:0.5em;font-size:1.1em;">🏷️ <b>Tag</b></h3>
<div style="color:#444;">A piece of code that tells the browser what to do.<br>Example: <code><h1></code></div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;min-width:180px;max-width:260px;flex:1 1 180px;margin-bottom:1em;">
<h3 style="margin-top:0;margin-bottom:0.5em;font-size:1.1em;">📦 <b>Element</b></h3>
<div style="color:#444;">The whole thing, including the tag and its content.<br>Example: <code><p>Hello!</p></code></div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;min-width:180px;max-width:260px;flex:1 1 180px;margin-bottom:1em;">
<h3 style="margin-top:0;margin-bottom:0.5em;font-size:1.1em;">🔑 <b>Attribute</b></h3>
<div style="color:#444;">Extra info inside a tag.<br>Example: <code>src</code> in <code><img src="cat.jpg"></code></div>
</div>
</div>
</section>
<section class="cheatsheet" style="background:linear-gradient(90deg,#fff1eb 0%,#ace0f9 100%);margin:2em 0;padding:2em 1em;border-radius:18px;">
<h2>18. 🏗️ HTML Cheatsheet (Super Beginner)</h2>
<p style="font-size:1.1em;"><b>How to use this cheatsheet:</b> Each card below shows a common HTML element, what it does, and a super simple example. Try copying the code into your own file and see what happens!</p>
<div style="display:flex;flex-wrap:wrap;gap:1.5em;justify-content:center;">
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">#️⃣ <h1> Heading</h3>
<div style="color:#444;margin-bottom:0.5em;">Biggest title on the page.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><h1>My Title</h1></div>
<div style="color:#1976d2;font-size:0.98em;">Use only once per page.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">📄 <p> Paragraph</h3>
<div style="color:#444;margin-bottom:0.5em;">A block of text.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><p>Hello!</p></div>
<div style="color:#1976d2;font-size:0.98em;">Use for any text.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">🔗 <a> Link</h3>
<div style="color:#444;margin-bottom:0.5em;">Makes a clickable link.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><a href="https://google.com">Google</a></div>
<div style="color:#1976d2;font-size:0.98em;">Use <code>href</code> for the link.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">🖼️ <img> Image</h3>
<div style="color:#444;margin-bottom:0.5em;">Shows a picture.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><img src="cat.jpg" alt="A cat"></div>
<div style="color:#1976d2;font-size:0.98em;">Use <code>src</code> and <code>alt</code>.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">📋 <ul> List</h3>
<div style="color:#444;margin-bottom:0.5em;">Bulleted list.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><ul><li>Milk</li></ul></div>
<div style="color:#1976d2;font-size:0.98em;">Use with <code><li></code>.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">🔢 <ol> Numbered List</h3>
<div style="color:#444;margin-bottom:0.5em;">Numbered list.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><ol><li>First</li></ol></div>
<div style="color:#1976d2;font-size:0.98em;">Use with <code><li></code>.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">📦 <div> Container</h3>
<div style="color:#444;margin-bottom:0.5em;">Groups content together.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><div>Stuff</div></div>
<div style="color:#1976d2;font-size:0.98em;">Used for layout.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">📝 <form> Form</h3>
<div style="color:#444;margin-bottom:0.5em;">Lets users type info.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><form><input type="text"></form></div>
<div style="color:#1976d2;font-size:0.98em;">Use with <code><input></code> and <code><button></code>.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">🔲 <table> Table</h3>
<div style="color:#444;margin-bottom:0.5em;">Organizes data in rows/columns.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><table>...</table></div>
<div style="color:#1976d2;font-size:0.98em;">Use with <code><tr></code>, <code><th></code>, <code><td></code>.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">🔤 <span> Inline</h3>
<div style="color:#444;margin-bottom:0.5em;">Styles part of text.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><span>Text</span></div>
<div style="color:#1976d2;font-size:0.98em;">Use for coloring or styling words.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">↩️ <br> Line Break</h3>
<div style="color:#444;margin-bottom:0.5em;">Starts a new line.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;">Hello<br>World</div>
<div style="color:#1976d2;font-size:0.98em;">No closing tag.</div>
</div>
<div style="background:#fff;border-radius:12px;box-shadow:0 2px 8px #e0e7ef;padding:1.2em 1em;max-width:260px;min-width:200px;flex:1 1 220px;margin-bottom:1em;">
<h3 style="margin-top:0;">➖ <hr> Line</h3>
<div style="color:#444;margin-bottom:0.5em;">Draws a horizontal line.</div>
<div style="background:#f0f7fa;padding:0.7em;border-radius:6px;font-family:monospace;font-size:1em;margin-bottom:0.5em;"><hr></div>
<div style="color:#1976d2;font-size:0.98em;">No closing tag.</div>
</div>
</div>
<h3 style="margin-top:2em;">📝 More Basic Examples</h3>
<div style="background:#e0f7fa;padding:1em;border-radius:8px;margin-bottom:1em;">
<b>Simple Web Page:</b><br>
<code><!DOCTYPE html><br><html><br> <head><br> <title>My First Page</title><br> </head><br> <body><br> <h1>Hello!</h1><br> <p>Welcome to my page.</p><br> </body><br></html></code>
</div>
<div style="background:#fff1eb;padding:1em;border-radius:8px;margin-bottom:1em;">
<b>Image Example:</b><br>
<code><img src="cat.jpg" alt="A cute cat" width="150"></code><br>
<i>This shows a 150-pixel wide cat picture (if cat.jpg exists).</i>
</div>
<div style="background:#fbc2eb;padding:1em;border-radius:8px;margin-bottom:1em;">
<b>Link Example:</b><br>
<code><a href="https://www.example.com" target="_blank">Visit Example</a></code><br>
<i>This makes a clickable link that opens in a new tab.</i>
</div>
<h3>⭐ Tips for Beginners</h3>
<ul>
<li>Always close your tags (except <code><br></code> and <code><hr></code>).</li>
<li>Use <code>alt</code> on images for accessibility.</li>
<li>Use headings in order: <code><h1></code>, then <code><h2></code>, etc.</li>
<li>Try each example in your own file and see what happens!</li>
</ul>
</section>
<section class="next-steps" style="background:linear-gradient(90deg,#e0c3fc 0%,#8ec5fc 100%);">
<h2>17. 🚀 Next Steps & Resources</h2>
<ul>
<li>Try the <a href="index.html">HTML Guide</a> to add style!</li>
<li>Try the <a href="css-beginner-guide.html">CSS Guide</a> to add style!</li>
<li>Try the <a href="javascript-beginner-guide.html">JavaScript Guide</a> to add interactivity!</li>
<li>Explore <a href="https://www.freecodecamp.org/" target="_blank">freeCodeCamp</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN HTML</a>, and <a href="https://www.w3schools.com/html/" target="_blank">W3Schools</a> for more learning.</li>
<li>Join coding communities on Discord, Reddit, or Stack Overflow for help and support.</li>
</ul>
<div class="tip">Keep experimenting and building. Every coder started as a beginner!</div>
</section>
</main>
<footer>
Created by Wajih Shaikh
</footer>
</body>
</html>