<hr color="">

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

The color attribute of the HR element specifies the color of the horizontal rule.


<hr color="#ff0000">

Attribute Value Explanation
color=" " color code or name the color of the horizontal rule

Extension attribute. (Non standard attribute)

Example


<hr> (Default)

Output


<hr color="#0000ff">

Output


<hr size="10">
<hr size="10" color="red">

Output