Which of the following property changes the color of top border?

border-top-color
border-left-color
border-right-color
border-bottom-color

The correct answer is: A. border-top-color

The border-top-color property sets the color of the top border of an element. It is a CSS property that is used to specify the color of the top border of an element. The value of this property is a color value, such as “red” or “blue”.

The border-left-color, border-right-color, and border-bottom-color properties are used to specify the color of the left, right, and bottom borders of an element, respectively.

Here is an example of how to use the border-top-color property:

css
div {
border-top-color: red;
}

This code will set the color of the top border of all div elements to red.