The <br> element produces a line break in text (a carriage return). Use it when the split between lines matters — poems, lyrics, or postal addresses.
It is a void element: start tag only, no content, no end tag. Do not use <br> to create space between paragraphs — wrap text in <p> and control gaps with CSS margin. For optional breaks inside long words, see <wbr>.
Baseline · Widely available.
Not deprecated as an element. Stable across modern browsers since about July 2015.
Deprecated: clear.
Do not use the old clear attribute on <br>. Control layout with CSS instead of presentational break attributes.
Syntax
HTML Syntax
syntax.html
<br>or <br /> (XHTML)
In HTML5, write <br>. In XHTML, self-close as <br />. Never write <br></br>.
Reference
Attributes
<br> has no useful modern element-specific attributes. Prefer globals only; avoid deprecated clear.
See the anti-pattern: double <br> only adds empty lines.
Use two <p> elements for two ideas.
Space with CSS margin on paragraphs when needed.
Better for accessibility — screen readers get real paragraph structure.
Edge Cases & Pitfalls
Most br problems come from using it as a spacing tool instead of a meaningful line break.
a11y
Do not fake paragraphs with br
Screen readers may announce breaks awkwardly. Real <p> elements are clearer.
CSS
Avoid margin on br
MDN: use line-height for line spacing, not margins on break tags.
syntax
No closing tag
<br></br> is invalid. Use <br> (or <br /> in XHTML).
deprecated
Skip clear
The clear attribute is obsolete. Clear floats with CSS.
vs wbr
Hard break vs optional break
br always breaks. wbr only suggests a break if needed.
Compatibility
Browser Support
The <br> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<br>
Widely available since about July 2015. Line breaks work everywhere; deprecated clear should be ignored in new work.
99%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<br>Widely supported
Bottom line: Safe everywhere for meaningful line breaks. Use p + CSS for paragraph spacing.
Remember
Key Takeaways
Role:<br> inserts a hard line break where line splits matter.
Void: write <br> — no end tag, no content.
Not for spacing: use <p> + CSS margin between paragraphs.
Deprecated: never use clear on br.
One line: use <br> for meaningful line ends — not as a paragraph spacer.
UA style
Default CSS Settings
<br> has no box of its own. Typical UA behavior is simply a forced line break:
default.css
br {
/* Void line-break; no width/height of its own */
display: inline; /* effectively forces a new line in text */
}
/* Prefer this for spacing between lines of text: */
p {
line-height: 1.5;
}
Do not rely on styling br for layout. Style the surrounding text instead.
Frequently Asked Questions
The br element inserts a line break in text where the line split matters — for example lines of a poem or a postal address.
Yes. It has a start tag and no end tag. In HTML write <br>. In XHTML write <br />.
No. Wrap paragraphs in p elements and control spacing with CSS margin. Using br for that is bad practice and harder for screen reader users.
clear is deprecated. It once controlled where the next line began after floated content. Do not use it in new pages.
br has almost no visual box of its own. Do not use margin on br to fake line spacing — use line-height on the text block instead.
Use wbr for an optional word-break opportunity inside a long word or URL. Use br when you always want a hard line break.