Summary -

In this topic, we described about the <br> tag along with detailed example.

Line break tag is used to break the line of display. Line break tag represented as <br /> tag in HTML coding. <br> tag inserts a single line break. The <br> tag is an empty tag because of no content and it has no ending tag.

Wherever <br /> represented in paragraph or anywhere the following code from <br/> will be displayed in next line. <br /> tag can be coded in between tags and out of tags. <br> tag to enter line breaks in between the lines, not to separate paragraphs.

Syntax -

<br/>
Note! The forward slash is only for older version browsers and can be ignored for new browsers.

Example -

<!DOCTYPE html>
<html>
	<head>
		<title>Line break tag example..</title>
	</head>
	<body>
		<h6>With line breaks -</h6>
		<p>
			First paragraph text here…<br /> 
			Second paragraph text here…<br /> 
			Third paragraph text here…
		</p>
		<h6>Without line breaks -</h6>
		<p>
			First paragraph text here… 
			Second paragraph text here…
			Third paragraph text here…
		</p>
	</body>
</html>

Output -

With line breaks -

First paragraph text here…
Second paragraph text here…
Third paragraph text here…

Without line breaks -

First paragraph text here… Second paragraph text here… Third paragraph text here…