br

FilterElements

HTML: <br>
XHTML: <br/>  or  <br />

Inserts a line break in the content, such as in a poem or postal address.

Start/End Tags

This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.

Specifications

  • HTML 4.01
  • HTML5

clear=

Values: none | left | right | all
Deprecated. Not in HTML5. Specifies where the next line should appear after the line break in relation to floated elements (such as an image that has been floated to the left or right margin). The default, none, causes the next line to start where it would normally. The value left starts the next line below any floated objects on the left margin. Similarly, right starts the next line below floated objects on the right margin. The value all starts the next line below floats on both margins.
HTML
<p>O'Reilly Media<br> 1005 Gravenstein Highway North<br> Sebastopol, CA 95472</p>
XHTML
<p>O'Reilly Media< /br> 1005 Gravenstein Highway North< /br> Sebastopol, CA 95472</p>

Rendered Example

O'Reilly Media
1005 Gravenstein Highway North
Sebastopol, CA 95472