The most basic way to create a horizontal line in HTML is using <hr> tag. The <hr> tag adds a simple, horizontal line across the page, it is used to separate content sections.
you can style the <hr> tag to customize its look, like changing the color, width, or thickness in the CSS file later.
<hr class="styled-line">
.styled-line {
border: 0;
height: 2px;
background-color: #333;
width: 80%;
margin: 20px auto;
}