🌐 Full HTML Crash Course Explained
🔰 1. Introduction to HTML
🧠 What is HTML?
HTML (HyperText Markup Language) is the standard language for creating web pages. It describes structure and content—not design.
You use HTML to:
-
Add text, images, links
-
Create headings and paragraphs
-
Build forms and tables
HTML is the foundation of every website.
⚙️ How Browsers Work
Browsers (like Chrome or Firefox) read HTML files and render them into web pages.
HTML → Browser → Visual Page
✍️ Your First HTML Page:
✅ What it does:
-
<!DOCTYPE html>
tells the browser to use HTML5 -
<html>
is the root -
<head>
holds info about the page (not visible) -
<body>
shows the content on screen
🧱 2. HTML Document Structure
🎯 Goal: Understand the layout of an HTML page
🔍 Key Tags:
-
<meta charset="UTF-8">
: Supports all characters -
<meta name="viewport">
: Makes site responsive on mobile -
<title>
: Title in browser tab
✍️ 3. Text Elements in HTML
HTML gives us special tags to add and format text.
🏷️ Headings
🧾 Paragraphs
🔠 Formatting Text
🔁 Line Breaks & Horizontal Rules
🔗 4. Links, Images & Media
🔗 Links (<a>
)
-
href
: Where the link goes -
target="_blank"
: Opens in a new tab
🖼️ Images (<img>
)
-
src
: Image file -
alt
: Describes image for accessibility
🎥 Video & Audio
-
controls
: Adds play/pause UI
📋 5. Lists & Tables
✅ Lists
📊 Tables
-
<th>
: Table Heading -
<td>
: Table Data -
<tr>
: Table Row
📝 6. Forms and User Input
📄 Basic Form
📌 Other Input Types:
-
type="password"
→ Hidden characters -
type="checkbox"
→ Checkable option -
type="radio"
→ Select one from many -
type="file"
→ Upload file
🧩 7. Semantic HTML
🧠 What is Semantic HTML?
Semantic HTML uses meaningful tags that describe content clearly (instead of generic <div>
s).
🏷️ Examples
✅ Benefits:
-
Better SEO
-
Improves accessibility
-
Makes code easier to read
⚙️ 8. HTML Attributes Deep Dive
🔧 Common Global Attributes:
-
id
: Unique identifier -
class
: For grouping elements -
style
: Inline CSS -
title
: Tooltip text
🧑🦯 Accessibility (ARIA)
-
Helps screen readers understand page structure
🌐 9. Embedding External Resources
🎨 Add CSS
🔡 Load Fonts
⚙️ Add JavaScript
📇 Favicon
🏗️ 10. Project: Build a Personal Portfolio Website
Here’s how everything fits together:
🎓 Final Tips :--
✅ Practice by building:
-
A Resume Page
-
A Blog Layout
-
A Simple Contact Form
💡 Want to go further?
-
Learn CSS to make it look great
-
Learn JavaScript to make it interactive