1️⃣ What Is HTML (In Human Language)?
HTML stands for HyperText Markup Language.
It’s not a programming language – it’s a structure language.
Every website you see – Facebook, YouTube, LinkedIn, your portfolio –
all of them use HTML as the skeleton of the page. CSS adds design, JavaScript adds behavior,
but HTML is the basic structure.
Think of HTML as the “building blocks” of a web page: headings, paragraphs, images, buttons, forms, etc.
2️⃣ How a Web Page Actually Works
Very high level:
- You write HTML in a file like
index.html.
- You open it in a browser (Chrome, Edge, Firefox, etc.).
- The browser reads your HTML and shows it visually as a web page.
You don’t need any heavy software to start – only:
- ✅ A text editor (VS Code, Notepad++, or even Notepad).
- ✅ A browser.
- ✅ One simple file:
index.html.
3️⃣ HTML File Basic Structure
Every proper HTML page follows a basic structure like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Web Page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
🔍 Quick breakdown
<!DOCTYPE html> → Tells the browser: “This is an HTML5 document”.
<html>...</html> → The root of the page.
<head> → Hidden information (title, meta, CSS, etc.).
<body> → What the user actually sees.
First practice: create a folder, make a file called index.html,
paste the template above, and open it in your browser.
4️⃣ HTML Tags & Attributes – The Core Idea
HTML is made of tags.
Most tags come in pairs:
<tagname> Content here </tagname>
Example:
<p>This is a paragraph.</p>
Attributes
Attributes give extra information to a tag – like an ID, class, href, src, etc.
<a href="https://sajidrabby.com">Visit my portfolio</a>
a → anchor tag (link).
href → attribute that defines where the link goes.
5️⃣ Headings & Paragraphs
Headings are used for titles and sections. There are 6 levels:
<h1>Main Page Title</h1>
<h2>Big Section</h2>
<h3>Sub Section</h3>
<h4>Smaller heading</h4>
<h5>Even smaller</h5>
<h6>Tiny heading</h6>
Paragraphs use <p>:
<p>This is a normal paragraph of text in HTML.</p>
Best practice: Use only one <h1> per page for the main title. It’s good for SEO and structure.
6️⃣ Links, Images & Lists – The Most Used Elements
🔗 Links
<a href="https://example.com" target="_blank">Open in new tab</a>
href → destination URL.
target="_blank" → opens in a new tab.
🖼 Images
<img src="profile.jpg" alt="My profile photo">
src → image file path.
alt → text shown if image fails, also for screen readers.
📋 Lists
Ordered (numbered) list:
<ol>
<li>First step</li>
<li>Second step</li>
</ol>
Unordered (bulleted) list:
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
7️⃣ Div, Span & Semantic Tags
<div> = block container (takes full width).
<span> = inline container (only content width).
<div>
<h2>About Me</h2>
<p>I am an IT support specialist and web developer.</p>
</div>
<p>This is <span>inline text</span> inside a paragraph.</p>
Semantic tags (modern HTML)
Better structure and SEO:
<header> → top section / navigation.
<nav> → menu / navigation links.
<main> → main page content.
<section> → logical sections.
<article> → standalone content (blog post, card, etc.).
<footer> → bottom info / copyright.
8️⃣ Forms – Basics You Must Know
Forms are used to collect data (login, contact, search, etc.).
Backend is required to really submit data, but front-end structure starts with HTML.
<form action="/submit" method="POST">
<label>Name:</label>
<input type="text" name="name" placeholder="Enter your name">
<label>Email:</label>
<input type="email" name="email" required>
<button type="submit">Send</button>
</form>
Common input types:
text, email, password
checkbox, radio
number, date, file
9️⃣ Comments & Indentation – Writing Clean HTML
Comments help you and other developers understand sections:
<!-- This is a comment, it will not show in the browser -->
Indentation example:
<div class="card">
<h2>Title</h2>
<p>Description text here...</p>
</div>
Clean HTML = easier to debug, easier to maintain, easier to upgrade later with CSS/JS.
🔟 Simple HTML Practice Plan (7 Days)
Here’s a small routine you can follow:
- Day 1: Create a basic
index.html with h1, p.
- Day 2: Add headings, paragraphs, and lists.
- Day 3: Add links and images.
- Day 4: Create a small profile section using
div, span, section.
- Day 5: Build a simple contact form.
- Day 6: Create a mini “portfolio” page with multiple sections.
- Day 7: Clean your code, add comments, and organize structure.
✅ Final Thoughts – Where HTML Fits in Full Stack
If you want to become a full stack developer, HTML is your first building block.
After this, you’ll go deeper into:
- 🎨 CSS – for design and layout.
- ⚙️ JavaScript – for interactions and logic.
- 🧠 Backend (Node, Python, PHP, etc.) – for data & logic.
- 🗄 Databases – for persistent storage.
But no matter how advanced you go, HTML stays with you forever.
So invest a few days to really understand it – not just copy–paste.
1️⃣ HTML কী – একদম সহজ ভাষায়
HTML মানে HyperText Markup Language।
এটা কোনো Programming Language না – এটা একটি Structure Language।
তুমি যেকোনো ওয়েবসাইট দেখো – Facebook, YouTube, LinkedIn, তোমার portfolio –
সব কিছুর নিচে থাকে HTML। CSS দেয় design, JavaScript দেয় আচরণ,
কিন্তু HTML দেয় পুরো পেজের হাড়–মাংস–গঠন।
HTML কে ভাবতে পারো "ওয়েব পেজের building blocks" হিসেবে – শিরোনাম (heading), লেখা (paragraph), ছবি, বোতাম, form – সবকিছু।
2️⃣ ওয়েব পেজ আসলে কীভাবে কাজ করে?
একদম High level flow:
- তুমি একটা ফাইল বানাও – যেমন
index.html।
- এই ফাইলটা browser দিয়ে ওপেন করো (Chrome, Edge, Firefox ইত্যাদি)।
- Browser তোমার HTML পড়ে – এবং setা ভিজুয়ালি পেজ আকারে দেখায়।
শুরু করার জন্য তোমার যা লাগবে:
- ✅ একটা Text Editor (VS Code, Notepad++, বা Notepad হলেও চলবে)।
- ✅ একটা Browser।
- ✅ একটা ফাইল –
index.html।
3️⃣ HTML ফাইলের বেসিক স্ট্রাকচার
প্রায় সব HTML পেজ–ই এই common structure ফলো করে:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Web Page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
🔍 এক নজরে বুঝে নাও
<!DOCTYPE html> → Browser কে বলে: “এটা HTML5 ডকুমেন্ট।”
<html>...</html> → পুরো পেজের root container।
<head> → hidden অংশ – title, meta info, CSS ইত্যাদি থাকে।
<body> → যেগুলো User আসলে স্ক্রিনে দেখে।
প্রথম প্র্যাকটিস: একটা folder বানাও → index.html ফাইল তৈরি করো →
এই কোডটা paste করে browser এ ওপেন করো।
দ্যাখো – তুমি নিজের প্রথম ওয়েব পেজ বানিয়ে ফেলেছো!
4️⃣ HTML Tag & Attribute – মূল ধারণা
HTML গঠিত হয় tag দিয়ে।
বেশিরভাগ tag এর শুরু–শেষ থাকে:
<tagname> কনটেন্ট এখানে </tagname>
যেমন:
<p>এটা একটি প্যারাগ্রাফ।</p>
Attributes কী?
Attribute হলো tag–এর extra information – যেমন ID, class, href, src ইত্যাদি।
<a href="https://sajidrabby.com">Visit my portfolio</a>
a → anchor tag (লিংক)।
href → কোথায় যাবে, সেই URL।
5️⃣ Headings & Paragraph – পেজের বেসিক লেখা
Headings ব্যবহার হয় Title ও Section বানাতে। মোট ৬ লেভেল:
<h1>Main Page Title</h1>
<h2>Big Section</h2>
<h3>Sub Section</h3>
<h4>Small heading</h4>
<h5>Very small</h5>
<h6>Tiny heading</h6>
সাধারণ লেখা বা paragraph এর জন্য:
<p>এটা HTML এর একটি সাধারণ প্যারাগ্রাফ।</p>
ভালো practice: প্রতি পেজে একটাই <h1> ব্যবহার করো – main title হিসেবে।
SEO আর structure – দুটো দিক থেকেই অনেক ভালো।
6️⃣ Links, Images & Lists – সবথেকে বেশি ব্যবহৃত এলিমেন্ট
🔗 লিংক
<a href="https://example.com" target="_blank">নতুন ট্যাবে খুলো</a>
href → কোন URL এ যাবে।
target="_blank" → নতুন ট্যাবে ওপেন হবে।
🖼 ছবি
<img src="profile.jpg" alt="আমার প্রোফাইল ছবি">
src → ইমেজের ফাইল পথ।
alt → fallback টেক্সট + screen reader friendly।
📋 লিস্ট
Number সহ ordered list:
<ol>
<li>প্রথম ধাপ</li>
<li>দ্বিতীয় ধাপ</li>
</ol>
Bullet সহ unordered list:
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
7️⃣ Div, Span & Semantic Tag – Layout এর বেস
<div> → block container (পুরো লাইন দখল করে)।
<span> → inline container (যতটুকু লেখা, ততটুকু)।
<div>
<h2>About Me</h2>
<p>আমি IT Support Specialist এবং Web Developer।</p>
</div>
<p>এটা <span>inline টেক্সট</span> প্যারাগ্রাফের ভেতরে।</p>
Semantic Tag – আধুনিক HTML
Semantic tag মানে – নাম দেখে বোঝা যায়, এর ভেতরে কী ধরনের কনটেন্ট:
<header> → উপরের অংশ, logo + menu ইত্যাদি।
<nav> → navigation menu।
<main> → পেজের মূল content।
<section> → আলাদা আলাদা অংশ।
<article> → ব্লগ পোস্ট বা independent content।
<footer> → নিচের অংশ, contact / copyright।
8️⃣ Form – ডাটা নেওয়ার শুরুটা HTML দিয়েই
Login form, Contact form, Search box – সব কিছুর শুরু HTML form দিয়ে।
Backend ছাড়া real submission হবে না, কিন্তু structure HTML–ই তৈরি করে।
<form action="/submit" method="POST">
<label>Name:</label>
<input type="text" name="name" placeholder="আপনার নাম লিখুন">
<label>Email:</label>
<input type="email" name="email" required>
<button type="submit">Send</button>
</form>
কিছু Common input type:
text, email, password
checkbox, radio
number, date, file
9️⃣ Comment & Indent – Clean কোড লেখার অভ্যাস
Comment মানে এমন লেখা, যেটা browser দেখাবে না – শুধু Developer দের জন্য:
<!-- এই অংশটা header section -->
Indentation উদাহরণ:
<div class="card">
<h2>Title</h2>
<p>Details text...</p>
</div>
পরিষ্কার HTML কোড মানে – future এ CSS/JS add করা, bug fix, অন্য কাউকে হ্যান্ডওভার – সবকিছু অনেক সহজ।
🔟 ৭ দিনের ছোট HTML প্র্যাকটিস প্ল্যান
ধরো তুমি একদম শুরুতে – তাহলে এমন করে Practice করতে পারো:
- দিন ১: শুধু
h1 আর p দিয়ে basic পেজ বানাও।
- দিন ২: Headings + Paragraph + list add করো।
- দিন ৩: Link + Image add করো, প্রদর্শন দেখে বোঝার চেষ্টা করো।
- দিন ৪:
div, section, footer দিয়ে profile–type পেজ বানাও।
- দিন ৫: ছোট Contact Form বানাও।
- দিন ৬: Mini portfolio পেজ – About, Skills, Projects, Contact সেকশন।
- দিন ৭: কোড clean করো, comment দাও, ফোল্ডার organize করো।
✅ শেষ কথা – Full Stack যাত্রার প্রথম ধাপ HTML
তুমি যদি Full Stack Developer হতে চাও, তোমার foundation শুরু হবে HTML দিয়ে।
এর পর আসবে:
- 🎨 CSS – Design, Layout, Responsive UI।
- ⚙️ JavaScript – Dynamic behavior, Logic।
- 🧠 Backend (Node/Python/PHP…) – Data + Business logic।
- 🗄 Database – Long-term data store।
কিন্তু তুমি যত দূরেই যাও না কেন, HTML সবসময় সাথেই থাকবে।
তাই অন্তত কয়েকদিন সময় নিয়ে HTML–কে ভালোভাবে বুঝে নাও, শুধু কপি–পেস্ট না করে।