The br
tag inserts a line break in text — like pressing Enter in a word processor.
It’s a self-closing tag and doesn’t need a closing /br
(in HTML5, it’s just <br>
).
✅ Syntax
<p>This is the first line.<br>This is the second line.</p>
📌 Result:
This is the first line.
This is the second line.
🧩 Common Use Cases
- Breaking lines inside a paragraph
- Address formatting
- Poems or song lyrics
- Manual line breaks in forms or legal text
🛑 When Not to Use <br>
Don’t use <br>
for spacing between elements — use CSS margin or padding instead. <br>
is meant for line breaks, not layout.
❌ Bad:
<p>Hello</p><br><br><br><p>World</p>
✅ Better:
<p style="margin-bottom: 2em;">Hello</p>
<p>World</p>
🧠 Summary
Tag | Purpose | Closing Required? | HTML5 Support |
---|---|---|---|
<br> | Line break (new line) | ❌ No | ✅ Yes |
Would you like to see a styled poem or form using <br>
effectively? I can build one for you in seconds!