Style borderTopColor Property
Style borderTopColor Property
The borderTopColor property is used to either set or return the color of the top border of an element.
Syntax:-
Its syntax is:- object.style.borderTopColor OR object.style.borderTopColor = color|transparent|initial|inherit
Return:-
Its return is:- string having color of an element top border
Further Explanation:-
Value | Description |
---|---|
color | Specifies the color of the top border. |
transparent | The color of the top border is transparent. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |