Easy Tutorial
❮ Tag I Att Pre Width ❯

HTML <br> Tag

Example

The following code marks a line break:

<p>
Using the br element<br>to break lines<br>within text.
</p>

Browser Support

All major browsers support the <br> tag.


Tag Definition and Usage

The <br> tag inserts a single 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 addresses or poems.

Note: Use the <br> tag to create a line break, not to separate paragraphs.


Differences Between HTML 4.01 and HTML5

None.


Differences Between HTML and XHTML

In HTML, the <br> tag does not require a closing tag.

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


Global Attributes

The <br> tag supports HTML's global attributes.


Event Attributes

The <br> tag supports HTML's event attributes.


Related Articles

HTML Tutorial: HTML Paragraphs

❮ Tag I Att Pre Width ❯