Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

HTML <br> Tag


Example

Insert single line breaks in a text:

<p>To force<br> line breaks<br> in a text,<br> use the br<br> element.</p>
Try it Yourself »

More "Try it Yourself" examples below.


Definition and Usage

The <br> tag inserts a single line break.

The <br> tag is useful for writing addresses or poems.

The <br> tag is an empty tag which means that it has no end tag.


Tips and Notes

Note: Use the <br> tag to enter line breaks, not to add space between paragraphs.


Browser Support

Element
<br> Yes Yes Yes Yes Yes

Global Attributes

The <br> tag also supports the Global Attributes in HTML.


Event Attributes

The <br> tag also supports the Event Attributes in HTML.


More Examples

Example

Use <br> in a poem:

<p>Be not afraid of greatness.<br>
Some are born great,<br>
some achieve greatness,<br>
and others have greatness thrust upon them.</p>

<p><em>-William Shakespeare</em></p>
Try it Yourself »

Related Pages

HTML tutorial: HTML Paragraphs

HTML DOM reference: BR Object


Default CSS Settings

None.


W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.