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)
Use CSS instead of deprecated HTML. Please see the "Related Document" for details on CSS.
<hr> (Default)
<hr width="200">
<hr size="1" width="70%">
<hr size="50" width="50">
<hr size="100" width="5">
<hr width="50%" align="left">
<hr size="10" width="400" align="right">