Home » Home » HTML Break Tag

HTML Break Tag <br>

The HTML <br> tag creates a line break within a paragraph. This tag is used very commonly during writing content for the website. The break tags are very helpful to write any content with line breaks. For example, writing a Poem or an address. In these type of content, the line break is very significant, so Break Tag helps to produce those line breaks without changing the paragraph.

The <br> tag is an Unpaired tag which means that it has no closing tag. Look at the example below to see how to use it:

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








Follow Us: