HTML BR Tag

In an HTML document, the whole text is printed as a single unit unless you gave it proper tags and attributes. The <br> tag in HTML is an important formatting tag that helps you to provide line breaks in your document. Use <br> tag in your document where you want to start a new line. The <br> is an empty inline element used in HTML.

Example of <br> tag:-

Here is an example of a <br> tag where we divided a paragraph into two different parts.

<html>
<head>
<title> HTML Line Breaks </title>
</head>
<body>
<p>This is the whole paragraph, which we divided with the help of a line break.<br> This is second paragraph which is divided with <br> tag.</p>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *