Which of the following property defines the style for the bottom border of an element?

border-bottom-style
border-collapse
border-style-bottom
none of the mentioned

The correct answer is: A. border-bottom-style

The border-bottom-style property defines the style for the bottom border of an element. It can be used to set the border style to solid, dashed, dotted, double, groove, ridge, inset, or outset.

The border-collapse property specifies how the borders of adjacent table cells collapse. It can be used to set the border collapse to collapse, separate, or inherit.

The border-style-bottom property is not a valid CSS property.

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

css
div {
border-bottom-style: solid;
border-bottom-width: 1px;
border-bottom-color: red;
}

This code will create a solid red border that is 1px wide on the bottom of all div elements.

Exit mobile version