HTML br tag

By | March 12, 2020

In this chapter we will go into detail about Tag <br> of HTML. This tag is used to give breaks between any paragraph or heading or any content.<br> tag is used to give line breaks in any text. It is an empty tag. It does not require the last tag. This tag has no meaning. On giving <br> tag in the content of HTML it works like pressing enter in the word processor.

Syntax :-

text <br> text

Example:-

without <br> Tag:-

<!DOCTYPE html>
<html>
<head>
	<title>HTML br tag</title>
</head>
<body>
	
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis, quia.</p>

</body>
</html>

We have not used <br> tag in the example above, which looks something like this.

Output:-

With <br> Tag:-

<!DOCTYPE html>
<html>
<head>
	<title>HTML br tag</title>
</head>
<body>
	
    <p>Lorem ipsum dolor <br> sit amet, consectetur <br> adipisicing elit. <br> Officiis, quia.</p>

</body>
</html>

Output:-

Browser Support:-

All modern browsers support <br> tag of HTML.

for job
learn coding
for result in india
Spread the love

Leave a Reply

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