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

border-spacing
border-spacing
border-right
border-right-style

The correct answer is C. border-right.

The border-right property is used to style the right border of an element. It can be used to set the width, style, color, and other properties of the border.

The border-spacing property is used to specify the space between the borders of adjacent elements.

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

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

css
div {
border-right: 1px solid red;
}

This will create a red border that is 1 pixel wide on the right side of each div element.

Exit mobile version