<hr size="" width="" align="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The following attributes of the HR element specifies the size and alignment of the horizontal rule.


<hr size="5" width="300" align="left">

Attribute Value Explanation
size=" " pixels the size of the thickness (height)
width=" " pixels or % the size of the width
align=" " left horizontal alignment
left : aligns to the left
center : aligns to the center
right : aligns to the right
center
right

The use of these attributes is deprecated. (Use CSS instead)

Example


<hr> (Default)

Output


<hr width="200">

Output


<hr size="1" width="80%">

Output


<hr size="50" width="50">

Output


<hr size="100" width="5">

Output


<hr width="50%" align="left">

Output


<hr size="10" width="200" align="right">

Output