HTML Break

The HTML <br> tag or element breaks line in a paragraph. The <br> tag is an Unpaired tag which means that it has no end tag.

HTML Break Tag


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> HTML Break Line (br) Tag </title>
</head>
<body>
<p> To break lines <br> in a text, <br> use the br element. </p>
</body>
</html>

Output

HTML Break Line (br) Tag

To break lines
in a text,
use the br element.



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> HTML Break Line (br) Tag </title>
</head>
<body>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <br>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. <br><br> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p>
</body>
</html>

Output

HTML Break Line (br) Tag

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Difference between <br> and <br/>

HTML <br> tag can be used in two ways: The <br> or <br/>. It is recommended to use closed br tag <br/>, because it is supported in both HTML and XHTML.

Browser Support

Element
Microsoft Edge browser.png Edge
Chrome browser.png Chrome
Firefox browser.png Firefox
Opera browser.png Opera
safari browser.png Safari
<br>
Yes
Yes
Yes
Yes
Yes





Become a Patron!

Note: If the updated content is not visible to you please refresh the cookies by pressing CTRL + Shift + R.