CSS border color

CSS border color is used to set the border color of an HTML element.


Syntax

Output

This is the paragraph to show border color.


CSS border color values list

Sr. No. value Description
1 color Used to give color of border. The value for this can be hex, rgba() or color name in text format.
2 initial Used to define as the property initial value.
3 inherit Used to define the computed value of property on the elements parent.