Latest web development tutorials

HTML <br> tag

Examples

The following code marking a new line:

<p>
使用 br 元素<br>在文本中<br>换行。
</p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support <br> label.


Tag definitions and instructions

<br> label insert a simple line breaks.

<br> tag is an empty tag, which means it does not have an end tag.


Tips and Notes

Tip: <br> label is very useful when writing the address information or write poetry.

Note: Please use <br> labels to enter an empty line instead of split paragraph.


Differences between HTML 4.01 and HTML5

no.


Differences between HTML and XHTML

In HTML, <br> Tags no end tag.

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


Global Properties

<br> tag supports HTML global properties .


Event Properties

<br> tag supports HTML event properties .


related articles

HTML Tutorial: HTML paragraph