How to add a horizontal line in HTML?

The <hr> element is used to visually separate content sections or elements within a webpage, providing a clear visual distinction between them. <hr> is create a horizontal rule, also known as a horizontal line or divider, within a webpage.

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free