Change Language


Follow Navioo On Twitter

br

Specifies a hard line break in the text.

Browser/User Agent 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
class
[class-name]. Example values: header-class, list-element, etc.
CSS class assigned to the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Specifies how the text flows with regards to any surrounding elements.
4.0+ 1.0+ 7.0+ 1.0+
 
id
[element-id]
Unique identifier for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
style
[style-name]
Inline style for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
title
[text-description]
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
 

Examples -> Source code Demo online - > line break:

Ajax Javascript feed

↑ Grab this Headline Animator