English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Directory

HTML: <br> Tag

The HTML <br> tag defines a line break within the text of an HTML document. This tag is also commonly referred to as the <br> element. The HTML <br> element generates a line break (return) symbol in text. This element is very useful in writing poems and addresses, where line breaks are very important.

Online Example

The following code marks a line break:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial Website(oldtoolbag.com)</title> 
</head>
<body>
<p> 
Use the br element<br>to break lines in text. 
</p>
<p>The paragraph starts here<br>
and ends on the next line./p>
</body>
</html>
Test and See ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <br> tag.

Tag Definition and Usage

The <br> tag inserts a simple line break.

The <br> tag is a void tag, meaning it does not have a closing tag.

Tips and Notes

The HTML <br> element is located within the <body> tag.
<br> tag simply drags the text to the next line, unlike the <p> tag at this point using </ p> produces less vertical blank space when closed compared to

HTML 4.01 With HTML5Differences

None.

Differences between HTML and XHTML

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

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

Global Attributes

<br> tag supports HTML Global Attributes.

Event Attributes

<br> tag supports HTML Event Attributes.

Related Articles

HTML Tutorial:HTML Paragraph