HTML and CSS · lesson 4 of 30 · free

Paragraphs and line breaks — HTML and CSS for kids

The p tag makes a paragraph: the browser puts a little space before and after it. Inside a paragraph, the br tag starts a new line, which is handy for poems and addresses. br is an empty tag — it has nothing inside, so it has no closing tag, just like img, hr, input and meta. Many spaces typed in your code are shown as just one space.

▶ Watch how it works

Got it? Practise ↓

Code tip

One p, one paragraph — “each p pair is a paragraph; each br starts a new line”

  1. Each <p> … </p> pair is one paragraph.
  2. Each <br> starts a new line: lines shown = number of <br> + 1.
  3. Empty tags (<br>, <img>, <hr>, <input>, <meta>) have no closing tag.

Use it for: Writing poems, addresses and stories on a web page.

Worked example: 📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Rivers flow</p> → 3

  1. There are 2 <br> tags.
  2. Each <br> starts a new line: 2 + 1 = 3 lines.

Check: Kites fly high / Roses are red / Rivers flow — 3 lines ✓

▶ Watch it animated

✏️ Practice

Work it out in your head or on paper, type the answer and press Check. Stuck? Press “Show me how”.

Right: 0 · Tried: 0

🏁 Lesson 4 test

20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.

🏅 Sign in with Google to earn the ✏️ Paragraph Placer badge when you pass — and a certificate when you finish all 10 lessons of Part 1 · HTML Basics. You can still take the test without signing in.

🖨️ HTML Worksheet: Paragraphs and Line Breaks

✨ Free AI tutor

Ask the AI tutor about this lesson

Why does it work? When should you use it? Ask in English, मराठी or हिंदी.

Sign in with Google to ask Free — 20 questions a day.

👩‍🏫 HTML and CSS classes near you — online or at home

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India and visit homes in selected cities. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
Teacher at homeA TalentJR teacher visits your home (selected cities).
At a centreClasses at a TalentJR partner centre near you, where available.
Badges, certificates & gifts A badge for every lesson you pass, a certificate for every part you finish, plus TalentJR Points for daily practice. Computer worksheets Flowcharts, block coding, spreadsheets and safe internet.