HTML br tag

HTML br tag breaks one line text into multiline text. It is empty type element.


 This text can 
 not be broken into
 two lines. This will appear as
 one line.
 This text can <br>
 be broken into two <br>
 The br tag is breaking a paragraph into multiple lines.
Try </>

In the above example, if we do not use br tag and break the paragraph then paragraph retains its behavior.

But the presence of br tag causes the single line paragraph to break into a multiline paragraph.

Specific uses

Common uses of br element.

  • poem

  • address


<!DOCTYPE html>
 <p> For example ,Harvard University address </p>
  Address: Cambridge, MA 02138, USA <br>
  Phone:+1 617-495-1000
Try </>

Instead of using br elements for presentational purposes pre element should be used.

Tag omission

br is self-closing tag (<br />) i.e. there is no end tag.

Global Attributes

All the global attributes are applicable on the br element.

Was this article helpful?




Get the newsletter