NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<br> (Line Break)


This empty element forces a line break.

Standard Syntax


<br
class="class name(s)"
clear="all | left | none | right" (transitional)
id="unique alphanumeric identifier"
style="style information"
title="advisory text" />

Events Defined by Internet Explorer


onlayoutcomplete, onlosecapture, onreadystatechange

Element-Specific Attributes


clear
This attribute forces the insertion of vertical space so that the tagged text can be positioned with respect to images. A value of left clears text that flows around left-aligned images to the next full left margin, a value of right clears text that flows around right-aligned images to the next full right margin, and a value of all clears text until it can reach both full margins. The default value according to the transitional HTML and XHTML specifications is none, but its meaning generally is supported as just introducing a return and nothing more.


Example


<img src="test.gif" align="right">
This is the image caption.<br clear="right">

Compatibility


HTML 2, 3.2, 4, 4.01, and XHTML 1.0, 1.1, Basic
Internet Explorer 2, 3, 4, 5, 5.5, 6
Netscape 1, 2, 3, 4- 4.7, 6, 7
Opera 4-7

Notes


This is an empty element. A closing tag is illegal under all HTML specifications.

For XHTML compatibility, a closing slash is required: <br />

Under the strict HTML and XHTML specifications, the clear attribute is not valid.

The style property clear provides the same functionality as the clear attribute.

(X)HTML Elements
CSS Properties
Previous: body Next: button
< Home | About | Chapters | Examples | Errata | Reference | Site Map >