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

border-color
border-style
border-width
border-bottom-color

The correct answer is D. border-bottom-color.

The border property is a CSS property that specifies the style of an element’s border. The border-bottom-color property is a shorthand property for the border-bottom-width, border-bottom-style, and border-bottom-color properties. It specifies the color of the bottom border of an element.

The border-color property specifies the color of the border. The border-style property specifies the style of the border. The border-width property specifies the width of the border.

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

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

This will set the color of the bottom border of the div element to red.

Exit mobile version