Skip to content

<br> - The Line Break Element

Inline HTML 2.0 Void Element

The line break element produces a line break in text. It’s useful for content where line breaks are significant, such as poems, addresses, or song lyrics.

Result
<!-- HTML5 -->
<br>
<!-- XHTML (also valid in HTML5) -->
<br />

The <br> element is a void element (self-closing), meaning it has no content or closing tag.

Result
Result
Result
Result
Result
<!-- Don't use <br> for vertical spacing -->
<p>First paragraph</p>
<br><br>
<p>Second paragraph</p>
This is the first paragraph.<br><br>
This is the second paragraph.<br><br>
This is the third paragraph.
<div>
Name: John<br><br><br>
</div>

You can style the space around line breaks using CSS:

Result

Screen readers announce <br> as a pause or line break, helping users understand the content structure.

Consider more semantic alternatives when appropriate:

<!-- Instead of this -->
<p>
Task 1<br>
Task 2<br>
Task 3
</p>
<!-- Consider this -->
<ul>
<li>Task 1</li>
<li>Task 2</li>
<li>Task 3</li>
</ul>
Line one<br><br>
Line two<br><br>
Line three

Line breaks are fixed and don’t adapt to screen size. For responsive layouts, consider CSS instead:

Result
Result
Result
BrowserVersionNotes
Chrome1+Full support
Firefox1+Full support
Safari1+Full support
Edge12+Full support
IE3+Full support

The <br> element has been supported since the earliest browsers.