background-color: ***;
Browser |
|
---|
The background-color property specifies the background color of an element.
The color of the horizontal rule can be specified by applying this property to the HR element.
hr {
background-color: red;
border: none;
height: 3px;
}
Property | Value | Explanation |
---|---|---|
background-color | color code or name | the background color of the horizontal rule |