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>

To force
line breaks
in a text,
use the br
element.

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.

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>

Be not afraid of greatness.
Some are born great,
some achieve greatness,
and others have greatness thrust upon them.

-William Shakespeare

Default CSS Settings

None.

Comments