HTML Paragraphs, Line Breaks, and Readable Text
Lesson 4 of 36 in the HTML5 learning path.
When should I use a paragraph instead of a br line break?
A paragraph element marks one idea in the body of a page. Browsers put space between paragraphs, screen readers pause at those boundaries, and writers can later style every idea the same way. A br element only breaks a line inside the idea you already started. It does not create a new paragraph, a new list item, or a new heading, so a stack of breaks looks like structure and behaves like a single block.
Choose p whenever the thought changes: a new step in a write-up, a new warning, a new sentence group under a heading. Choose br for lines that must stay one unit, such as the lines of a postal address or a short poem. If you are tempted to insert two or three breaks to make a gap, write another paragraph or add margin in CSS. The lab article, the office-hours card, and the syllabus intro all read better when paragraphs carry the ideas.
Syntax & Parameters
<p>One idea.</p><p>Street<br>City</p>
Example
Interactive preview available<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Office hours and the lab write-up</title>
<style>
body { margin: 0; font: 1.05rem/1.55 Georgia, "Times New Roman", serif; color: #1c1917; background: #faf7f2; }
header { background: #1e3a5f; color: #f8fafc; padding: 1.25rem 1.5rem; }
main { max-width: 42rem; margin: 0 auto; padding: 1.25rem 1.5rem 2rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 1.4rem 0 0.45rem; }
p { margin: 0 0 0.85rem; }
address { font-style: normal; }
footer { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem 2.5rem; color: #44403c; }
</style>
</head>
<body>
<header>
<p>North Campus, Web Systems 1</p>
</header>
<main>
<article>
<h1>Office hours and the lab write-up</h1>
<p>A paragraph holds one idea. This sentence and the next belong together because they tell you how to read the write-up, not because a line happened to end near the margin.</p>
<p>Start a new paragraph when the idea changes. The lab report explains what you built. The next paragraph tells your instructor how to open it. Those are separate paragraphs, not one block split with a forced break.</p>
<h2>Where a line break belongs</h2>
<p>A postal address is one thought made of short lines. The br element breaks a line without starting a new paragraph, which is what you want on an envelope and what you do not want between two ideas.</p>
<address>
<p>
Registrar Office<br>
Second Floor, Main Building<br>
Mandaue City 6014
</p>
</address>
<p>Hours are Thursday, 15:00 to 16:00, in room B204. That sentence is its own paragraph because it is not part of the street address.</p>
</article>
</main>
<footer>
<p>Department of Computer Studies</p>
</footer>
</body>
</html>
Expected Output
The page shows the heading Office hours and the lab write-up, two body paragraphs, a subheading, a short explanation, then a three-line address: Registrar Office, Second Floor, Main Building, Mandaue City 6014. The hours sentence sits under the address with normal paragraph spacing, not glued to the city line. In the accessibility tree the address lines are one paragraph with line breaks. The hours sentence is the next paragraph. There is no extra empty paragraph and no list. View source shows three br elements, all inside the address paragraph, and none between the two opening ideas.
Line-by-Line Walkthrough
- The h1 names the article. The paragraphs under it are the lesson, not a heading stack.
- The first paragraph is one idea about how to read the write-up, so its sentences stay inside a single p element.
- The second paragraph starts when the idea changes from how to read the report to how the instructor should open the work.
- A br between those ideas would look like a gap and would still be one paragraph to a screen reader, which is the mistake this page avoids.
- The h2 introduces the one place a line break is doing real work: a postal address.
- The address element marks contact information, and the p inside it is still one thought.
- Each br ends a line of that address without closing the paragraph, which matches how an envelope is read.
- Office hours are a separate p after the address because the hours are not part of the street address.
- Spacing between paragraphs comes from the p margin in CSS, not from extra br elements.
Read the article aloud at the paragraph boundaries. You should pause between ideas, and you should keep the three address lines in one breath as a single unit.
Common Pitfalls & Security
Line breaks are a common substitute for structure when a student wants space on the page. The painted gap can look fine and still leave a screen reader with one long paragraph. Margin on p is the tool for vertical space.
- A row of br elements between ideas is still one paragraph, so the pause a reader expects never lands in the accessibility tree.
- br is not a list, a heading, or a grid. Repeated breaks in a navigation line should be anchors in a list instead.
- Two br elements used as a blank line collapse differently across user style sheets and are harder to keep consistent than margin.
- Putting the hours, the warning, and the address in one paragraph separated only by br makes later edits, such as linking the room, messier.
- White-space in CSS can preserve line breaks in a poem or a code sample when you do not want a br after every line in the HTML.
Best Practices & Modern Standards
HTML5 uses p for a block of text that is one idea, and br only where a line break is part of that idea. Addresses and poems are the usual cases. Everything else that feels like a new thought deserves a new paragraph, a list, or a heading.
Let CSS create the gap. A paragraph margin of about one line is enough for a lesson page. If you need a tighter block, such as a caption under a figure, keep the element that matches the meaning and reduce the margin, rather than deleting the paragraph and inserting breaks.
Real-World Use
The office-hours card on the Web Systems 1 article page is the pattern instructors actually publish. The write-up instructions are paragraphs a student can skim. The registrar address is three short lines in one paragraph so it can be copied onto a form without picking up the hours sentence by mistake.
The same choice shows up on a faculty profile. A biography is paragraphs. The building and room are a small address with br elements. Mixing those with breaks makes the profile harder to scan and harder for a screen reader to chunk.
Frequently Asked Questions
Can I use br to put space between two paragraphs?
No. Close the first paragraph and open another one. The browser already inserts space from the default or authored margin on p. A br only breaks a line inside the paragraph you are still in.
Is an address with br more accessible than three paragraphs?
Yes for a postal address, because the lines are one unit of contact information. Three paragraphs would announce three separate ideas. Keep the br elements inside one p, and put hours or directions in following paragraphs.
Should a poem use br or a pre element?
A short poem can use br inside a paragraph when each break is a line of the poem. pre is better when the spacing and character columns themselves carry meaning, such as a code sample. Do not use pre for ordinary article text.
Do paragraphs matter for search?
They help because a page of real paragraphs is easier to quote and easier to skim than a wall of breaks. Search engines use the text either way, but a logical p under a real heading matches the topic of the section. Breaks do not create that topic.