HTML <br> Tag

The <br> tag creates a line break to the content. A line break forces the next line to appear on a new line, immediately below the current line.

HTML Tag

Example

#

A <br /> element after each line in Cézanne's studio address.

Address of Paul Cézanne Studio:

950 Chemin des Lauves,
13100 Aix-en-Provence,
France
<address>
  Address of Paul Cézanne Studio:<br />
  <br />
  950 Chemin des Lauves,<br />
  13100 Aix-en-Provence,<br />
  France
</address>
br = break

In case you're curious, this is Cézanne's actual studio.
The large narrow door on the right allowed very large paintings to leave the studio.


Using <br>

The <br> tag adds a line break to the content.

This is an empty tag which means it is used without a closing tag and has no content.

The <br> tag is mostly used to format text and to create divisions between parts on a page.

More Examples

A paragraph with <br /> tags after each line.
This is a famous poem, 'No man is an island' by Jon Donne.

No man is an island,
Entire of itself,
Every man is a piece of the continent,
A part of the main.
If a clod be washed away by the sea,
Europe is the less.
As well as if a promontory were.
As well as if a manor of thy friend’s
Or of thine own were:
Any man’s death diminishes me,
Because I am involved in mankind,
And therefore never send to know for whom the bell tolls;
It tolls for thee.

<p>
 No man is an island,<br />
 Entire of itself,<br />
 Every man is a piece of the continent,<br />
 A part of the main.<br />
 If a clod be washed away by the sea,<br />
 Europe is the less.<br />
 As well as if a promontory were.<br />
 As well as if a manor of thy friend’s<br />
 Or of thine own were:<br />
 Any man’s death diminishes me,<br />
 Because I am involved in mankind,<br />
 And therefore never send to know for whom the bell tolls;<br />
 It tolls for thee.
</p>

Attributes for <br>

The <br> tag has no attributes, but it does support global attributes.
Attributes are rarely, if ever, used on <br>.


Obsolete Attributes

Do not use the attribute listed below.  It's no longer valid on the <br> tag in HTML5.

Attribute Description Alternative
clear Specifies where the next line begins after the break. n/a

Did you know?

Did you know?

Which is correct <br> or <br />

Both <br> and <br /> formats are correct.

Since <br> is self-closing no additional elements can be placed inside it.

The <br /> tag (with /) was introduced for XHTML compatibility on self-closing tags.


Text Tags

The <br> tag is part of a group of tags that are used to create and format text documents. This group is referred to as the Text tag group. Together, these tags allow you to create comprehensive HTML text documents.

Here is a list of text tags.

Element Description
<h1>-<h6> Defines text headings in 6 different sizes
<p> Creates a paragraph
<span> Container for one or more inline text elements
<br> Creates a line break
<sup> Specifies superscript text
<sub> Specifies subscripted text
<u> Specifies underlined text
<i> Specifies italic text
<b> Specifies bold text
<em> Marks text that needs emphasis
<strong> Indicates text that is important or with high urgency
<del> Defines deleted text
<ins> Defines inserted text
<ruby> Represents a small annotation with pronunciation of text
<kbd> Specifies keyboard input, such as, CTRL or ALT
<wbr> Specifies a preferred word-break location for long words

Browser support

Here is when <br> support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

Guides