English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the <br> tag.
The <br> tag inserts a simple line break.
The <br> tag is a void tag, meaning it does not have a closing tag.
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
None.
In HTML, the <br> tag does not have a closing tag.
In XHTML, the <br> tag must be closed correctly, like this: <br /> .
<br> tag supports HTML Global Attributes.
<br> tag supports HTML Event Attributes.
HTML Tutorial:HTML Paragraph