HTML Standard: <hr> tag

<hr> tag

Inserts a horizontal rule.

Attributes
Attribute Description
class One or more classes.
id Id.
style Inline styles. Styles can also be applied using style tags.
Styles
Style Description
color
  • hexadecimal colors
height
  • length: cm, in, mm, pt, pc, px
text-align
  • center
  • left
  • right
width
  • auto
  • length: cm, in, mm, pt, pc, px
Code samples

Example #1

The resulting Word document looks like:

Example #2

The resulting Word document looks like: