How to specify the alignment of the Horizontal rule using HTML5 ?
As we know that the HTML <hr> tag is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections.
Approach: The task is to specify the alignment of <hr> element in HTML. This can be done by using the align attribute of <hr> tag in HTML document. It is used to set the horizontal line to left, right, and center.
<hr align="left | center | right">
Example: Below code use to set the alignment of <hr> tag.