HTML Line Breaks

HTML Line Breaks

<br /> adds a line break without starting a new paragraph.

The <br /> element is an empty HTML element. It has no end tag.


<!DOCTYPE HTML>
<html> 
<body> 
<p>This is<br />a paragraph<br /> with line breaks.</p> 
<p>This is a paragraph without line breaks.</p> 
</body> <!--from   www . j av a  2  s . com-->
</html> 

Click to view the demo

The code above generates the following result.

HTML Line Breaks