HTML <br>Tag


Examples

The following code marks a line break:

<p>Use the br element<br>in text<br>line break.</p>

Try it Yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the <br> tag.


Tag Definition and Usage

The <br> tag inserts a simple line break.

The <br> tag is an empty tag, meaning it has no end tag.


Tips and Notes

Tip:The <br> tag is very useful when writing address information or poems.

Note:Please use the <br> tag to insert blank lines, not to separate paragraphs.


Differences Between HTML 4.01 and HTML5

None.


Differences Between HTML and XHTML

In HTML, the <br> tag has no end tag.

In XHTML, the <br> tag must be correctly closed, like this: <br />.


Global Attributes

The <br> tag supportsHTML Global Attributes。


Event Attributes

The <br> tag supportsHTML Event Attributes。


Related Articles

HTML Tutorial:HTML Paragraphs

Other Extensions