HTML Line Breaks

In HTML, line breaks allow you to split content into different lines, similar to pressing "Enter" in a text editor. The most common way to create a line break is with the <br> tag.

The <br> Tag

The <br> tag inserts a line break without starting a new paragraph. It’s an empty tag, meaning it has no closing tag.

This is the first line.<br>
This is the second line.

Example Output

Rendered HTML:

This is the first line.
This is the second line.

When to Use Line Breaks

  • Addresses
  • Poems or song lyrics
  • Contact information
  • Forcing breaks inside a paragraph

Example: Address

123 Example Street<br>
New York, NY 10001<br>
USA

Don't Overuse <br>

It’s better to use CSS and proper block-level elements like <p> or <div> for layout and spacing. Use <br> only when a true line break is needed.

Line Break in Text Area (User Input)

<textarea rows="4" cols="50">Line 1
Line 2</textarea>