Specifies a hard line break in the text.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
---|
Example
This example displays two sentences of text on two separate lines.
This sentence is on the first line.<br / >
This sentence is on the second line.
Remarks
Remember to self-close your <br / > tags.
Attribute Detail
Attribute | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
CSS class assigned to the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
clear (br)
Specifies how the text flows with regards to any surrounding elements. | 4.0+ | 1.0+ | 7.0+ | 1.0+ | |
Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Inline style for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Short text description for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Event Detail
Event | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
Fires when Print or Print Preview finishes laying out the content in a LayoutRect with the source data. | 4.0+ | no | no | no | no |
Fires when the element loses mouse capture. | 4.0+ | no | no | no | no |
Fires when the ready state of the element changes. | 4.0+ | no | no | no | no |
Availability
W3C HTML 4.01