HTML <br> Tag

Definition and Usage

<br> tag inserts a single line break.

<br> tag is very useful for writing addresses or poetry.

<br> tag is an empty tag (meaning it does not have an end tag, so this is incorrect:<br></br>In XHTML, the end tag is placed inside the start tag, that is <br />.

Please note that<br> tag simply starts a new line, while when the browser encounters <p> When using the tag, vertical spacing is usually inserted between adjacent paragraphs.

Note:Please use <br> Labels are used to insert line breaks, rather than to increase the spacing between paragraphs.

See also:

HTML Tutorial:HTML Paragraph

HTML DOM Reference Manual:BR Object

Example

Example 1

Insert a single line break in the text:

<p>To force a line break in text, please use the <br>br<br> element.</p>

Try It Yourself

Example 2

Use <br> in a poem:

<p>
The grass on the original grassland is scattered, <br>
It withers and flourishes every year.<br>
The wild fire cannot burn it out, <br>
The spring breeze blows and it grows again.<br>
The fragrance of the wild grass invades the ancient path, <br>
Clear green connects the ruins of the city.<br>
Again send the prince away, <br>
Weeping with parting emotions.<br>
</p>
<p><em>- Tang Baijuyi</em></p>

Try It Yourself

Global Attributes

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

Event Attributes

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

Default CSS Settings

None.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support