avatar

Hassan khan

Last updated: December 22,2022

Line breaker or text breaker in html

HTML line break in paragraph


The HTML line break(<br />) tag is used to break the line. It is useful when you are writing the address of someone where you need division. The <br /> tag is self closed tag of HTML, or in simple words <br />has no closing tag. You can use it wherever you want to break the line of a paragraph or just a line.


HTML line break example:

1
2
3
4
5
6
7
8
<p>
  Street	108 Greenwood Square,<br/>
  City/Town	Snow Hill,<br/>
  State/Province/Region	Nebraska,<br/>
  Zip/Postal Code	28580,<br/>
  Phone Number	(252) 747-2490,<br/>
  Country	United States
</p>

Output of above example:

Street 108 Greenwood Square,
City/Town Snow Hill,
State/Province/Region Nebraska,
Zip/Postal Code 28580,
Phone Number (252) 747-2490,
Country United States


As you in the above example, the paragraph is broken into multiple lines. The text after <br /> will start at the new line.


Without <br /> example:

1
2
3
4
5
6
7
8
<p>
  Street	108 Greenwood Square,
  City/Town	Snow Hill,
  State/Province/Region	Nebraska,
  Zip/Postal Code	28580,
  Phone Number	(252) 747-2490,
  Country	United States
</p>

Output of above example:

Street 108 Greenwood Square,City/Town Snow Hill,State/Province/Region Nebraska,Zip/Postal Code 28580,Phone Number (252) 747-2490,Country United States


Share