To create horizontal lines on the html page is used to <hr> horizontal rules tag.
This tag supports all major browsers (IE, Chrome, Firefox, Opera, Safari, Android, Mozilla...)
Horizontal line in html:
<hr>
result:




Attributes

Attribute "width" sets length of the horizontal line (in percentage or pixels)

<hr width="50%">

result:


<hr width="70%">
result:


<hr width="90%">
result:



Attribute "size" set thickness of the horizontal line

<hr size="4">
result:


<hr size="8">
result:


<hr size="12">
result:



Attribute "align" sets the alignment of horizontal lines in the position of these values: "left", "right" and "center"

<hr align="left">

result:


<hr align="center">
result:


<hr align="right">
result:



Attribute "color" set color of the horizontal line

<hr color="green">
result:


<hr color="red">
result:


<hr color="blue">
result:





HTML Tags - Horizontal line in HTML (YouTube)


Privacy Policy