Skip to content
RSS
HTML BR Tag Explained

By

Raqueebuddin Aziz

July 21, 2023

Freelance Web Designer & Developer

HTML BR Tag Explained

The br tag is used to add line breaks in your HTML content.

Why not just press enter?

<p>
  This is line one.
  This is              line two.
</p>

This is line one. This is line two.

As you can see in the example above any excess white space including enters are removed from the rendered html.

Adding line breaks

<p>This is line one.<br />This is line two.</p>

This is line one.
This is line two.

By using the br tag you can add a line break that will make it to the rendered html

Conclusion

The br tag is pretty simple with only one use case and that is to add line breaks in your HTML content.

Leave a comment if you have any questions!

Post on X Share on LinkedIN Post on Reddit

© 2024 Raqueebuddin Aziz. All rights reserved.