<br> element represents a break in text. It is used when text needs to span multiple lines rather than being in-line, such as in an address.
Text that will appear on one line.<br />Text that will appear on the next line.
<br> is a self-closing tag and will move the text after it to a new line. The forward-slash
/ is optional.
In the example below, text for an address is contained in a single
<p> element. If the address were to be printed on a label, it should be formatted in a standard way to avoid confusion. This is done with self-closing
<html><head> </head><body><h3>Payment Address:</h3><p>5000 Sheffield Street <br />Suite #210 <br />Smithville Flats, MO, 11110</p></body></html>
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Learn HTML on Codecademy
Front-End EngineerFront-end engineers work closely with designers to make websites beautiful, functional, and fast.
Includes 34 Courses
With Professional Certification