How to add a built-in horizontal divider with Bootstrap 4 and HTML?

Spread the love

Sometimes, we want to add a built-in horizontal divider with Bootstrap 4 and HTML.

In this article, we’ll look at how to add a built-in horizontal divider with Bootstrap 4 and HTML.

How to add a built-in horizontal divider with Bootstrap 4 and HTML?

To add a built-in horizontal divider with Bootstrap 4 and HTML, we use the hr element.

For instance, we write

<div>
  Some text
  <hr />
  More text
</div>

to add the hr element between 2 lines of text in the div to add a horizontal divider between them.

Conclusion

To add a built-in horizontal divider with Bootstrap 4 and HTML, we use the hr element.

Leave a Reply

Your email address will not be published. Required fields are marked *