Headings & Paragraphs
Menu board jaisa — bada naam, chhota details.
Walk into Paradise Biryani. What do you see first? The big board — "PARADISE BIRYANI" in huge letters. Under that, smaller text: "Since 1953". Then even smaller: "Mutton, Chicken, Veg".
HTML headings work exactly like that board. <h1> is the restaurant name — biggest and most important. <h2> is the section name. <h3> is the sub-item. Down to <h6> — like the fine print on the back of the menu.
There are 6 heading levels in HTML:
- <h1> — Restaurant name. Use ONLY ONCE per page. This is your main title.
- <h2> — Section headers. "Starters", "Main Course", "Desserts" on the menu.
- <h3> — Sub-sections. Under "Main Course" → "Mutton Biryani", "Chicken Biryani".
- <h4> — Details. Under "Mutton Biryani" → "Full Plate", "Half Plate".
- <h5> — Extra info. "Served with raita and salan."
- <h6> — Fine print. "Prices inclusive of GST." Rarely used.
h1 — Paradise Biryani
h2 — Main Course
h3 — Mutton Biryani
h4 — Full Plate ₹450
h5 — Served with raita
h6 — Prices inclusive of GST
<p> is for normal body text. The description under each menu item — "Tender mutton cooked with basmati rice in dum style" — that's a paragraph. Not a heading, not a list. Just plain text.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Paradise Biryani — Menu</title>
</head>
<body>
<h1>Paradise Biryani — Menu</h1>
<h2>Main Course</h2>
<h3>Mutton Biryani</h3>
<h4>Full Plate — ₹450</h4>
<p>Tender mutton pieces layered with basmati rice, cooked in dum style with aromatic spices.</p>
<h3>Chicken Biryani</h3>
<h4>Full Plate — ₹350</h4>
<p>Succulent chicken pieces with long-grain basmati rice, sealed and slow-cooked.</p>
<h2>Desserts</h2>
<h3>Double Ka Meetha</h3>
<p>Hyderabadi bread pudding with reduced milk, dry fruits and saffron.</p>
</body>
</html>
<h1>...</h1>Biggest heading — page title, use once<h2>...</h2>Section headers — menu categories<h3>...</h3>Sub-sections — individual items<h4>...</h4>Details — price, size options<p>...</p>Normal text — descriptionsFollow the heading hierarchy like a restaurant menu board:
Google uses headings to understand your page. If your h1 says "Biryani" but your page is about chai — Google gets confused. Headings must match content. Simple.
Build a menu page for Paradise Biryani using proper heading hierarchy and paragraphs.
Open VS Code. Create a new file — name it paradise-menu.html
Use the starter code below and build the full menu:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Paradise Biryani — Menu</title>
</head>
<body>
<!-- h1: Restaurant name -->
<!-- h2: 3 sections -->
<!-- h3: items under each section -->
<!-- h4: prices -->
<!-- p: descriptions -->
</body>
</html>
Complete these:
Done — Key Points:
- ✅
<h1>to<h6>— 6 levels of headings - ✅
<h1>= most important, use only ONCE per page - ✅ Never skip levels — h1 → h2 → h3, not h1 → h4
- ✅
<p>= paragraph for normal body text - ✅ Headings are for structure, NOT for making text bigger
- ✅ Use CSS to change sizes — headings are for meaning
Want to track your progress?
Log in to save your place and pick up where you left off.
Progress track karna chahte ho?
Login karo apni progress save karne ke liye aur jahan chhoda tha wahan se shuru karo.
Login