keyboard_return The <br> Element
Creates a line break in text
Self-closing tag: <br>
Forces text to continue on next line
event_note When to Use
Writing poems or song lyrics
Displaying addresses
Preserving specific line formatting
warning Important Notes
Don't use for paragraph spacing
Not for creating margins
Use <p> tags for paragraphs instead
lightbulb
Best Practice
Use line breaks only when the division of lines is significant to the content's meaning or format.
<h3>Address Example</h3>
<p>
Mozilla Foundation
331 E. Evelyn Avenue
Mountain View, CA 94041
USA
</p>
<!-- Note: <br> is used instead of paragraph tags -->
<!-- to maintain the address format -->
<p>
Mozilla Foundation
331 E. Evelyn Avenue
Mountain View, CA 94041
USA
</p>
<!-- Note: <br> is used instead of paragraph tags -->
<!-- to maintain the address format -->
preview
Browser Output
Address Example
Mozilla Foundation
331 E. Evelyn Avenue
Mountain View, CA 94041
USA