You can use <hr>
as a horizontal line, and you probably should. In HTML5, it defines a thematic gap in content, without making any promises about how it is displayed. Attributes that are not supported in the HTML5 specification are related to the appearance of the tag. Appearance should be set in CSS, and not in the HTML itself.
So, use the <hr>
with no attributes, then create it in CSS to make it look the way you want.
source share