Description

The <br> tag produces a line break in text.

The following table summarizes the usages context and the version history of this tag.

Placement:Inline
Content:None.It is an empty element.
Start/ End Tag:Start tag: required , End tag: forbidden
Version:2, 3.2, 4, 4.01, 5

Syntax

The basic syntax of the <body> tag is given with:

HTML: <br>; XHTML: </br>

The example below shows the <br> tag in action.

<p>This paragraph contains <br>a line break.</p>
<p>This paragraph contains <br>multiple <br>line breaks.</p>

Tag-Specific Attributes

The following table shows the attributes that are specific to the <br> tag.

Global Attributes

Like all other HTML tags, the <br> tag supports the global attributes in HTML5.

Event Attributes

The <br> tag also supports the event attributes in HTML5.

Browser Compatibility

Element
<body>YesYesYesYesYes