Skip to content
Click Here to get a free report on how to make your website faster
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!

Tweet Share on LinkedIN Post on Reddit

Looking for a dev to help build an MVP for your tech startup?

Reach out to me.

Contact

We use cookies to enhance your browsing experience and analyze website traffic. By continuing to use our website, you consent to the use of cookies in accordance with our Privacy Policy.

Privacy Policy