Hassan khan
Last updated: December 22,2022
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<p>
2 Street 108 Greenwood Square,<br/>
3 City/Town Snow Hill,<br/>
4 State/Province/Region Nebraska,<br/>
5 Zip/Postal Code 28580,<br/>
6 Phone Number (252) 747-2490,<br/>
7 Country United States
8</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<p>
2 Street 108 Greenwood Square,
3 City/Town Snow Hill,
4 State/Province/Region Nebraska,
5 Zip/Postal Code 28580,
6 Phone Number (252) 747-2490,
7 Country United States
8</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