div {
border: 5px dashed red;
width: 100px;
height: 100px;
}The border shorthand sets width, style, and color. Here, dashed means the border will be made of dashes.
The double border style draws two parallel lines as the border.
Option A sets the border only on top and bottom edges with the correct style and color.
Option A sets border on all sides then removes left and right, which works but is less clear and can cause unexpected results.
Option A adds border on top and right, so right border appears incorrectly.
Option A uses different styles for top and bottom, so bottom is dotted, not solid.
Good contrast helps users with vision impairments notice focus outlines, improving keyboard navigation and accessibility.
div {
border-width: 10px 5px 15px 0;
border-style: solid;
border-color: green;
width: 150px;
height: 100px;
}The border-width shorthand sets widths in the order: top, right, bottom, left.
Left border width is 0, so no visible border on left side.
Other sides have solid green borders with specified widths.