Which property is used to apply a border only to the top of an element?
A
border-top B
border-start C
border-above D
top-border
Analysis & Theory
`border-top` applies a border only to the top of an element.
What does `border-left: 2px solid red;` do?
A
Adds a 2px red border to the top B
Adds a 2px red border to the left C
Adds a 2px red border to the right D
Removes the left border
Analysis & Theory
`border-left` targets the left side of the element for the border.
Which property targets the right side border?
A
border-right B
border-end C
right-border D
border-next
Analysis & Theory
`border-right` is used to apply or modify the right border.
Which of the following applies a green solid 3px border to the bottom?
A
border-bottom: green solid 3px; B
border-bottom: 3px solid green; C
border: bottom 3px green solid; D
border-bottom: solid green;
Analysis & Theory
`border-bottom: 3px solid green;` is the correct syntax.
How can you remove only the top border?
A
border-top: none; B
border: top none; C
border-top-style: hidden; D
border-top: remove;
Analysis & Theory
`border-top: none;` removes the top border.
What does `border-left-color: blue;` do?
A
Changes the left border's width B
Adds a blue border to all sides C
Changes only the left border’s color D
Applies blue shadow
Analysis & Theory
`border-left-color` changes only the left border color.
Which property changes only the style of the right border?
A
border-right-style B
border-style-right C
right-border-style D
border-right
Analysis & Theory
`border-right-style` modifies the style (solid, dashed, etc.) of the right border.
How do you apply different borders to all four sides?
A
Use four separate properties: `border-top`, `border-right`, `border-bottom`, `border-left` B
Use `border-sides: all;` C
Use `border: 4-sides;` D
Use `border: multi;`
Analysis & Theory
Each side of the border must be controlled using its specific property.
Which shorthand property allows setting individual border sides in one line?
A
border-sides B
border-width C
border-style D
border
Analysis & Theory
`border` can be used multiple times or individually for each side.
What will `border-top: 5px dashed orange;` do?
A
Make all borders dashed orange B
Apply a 5px dashed orange border to the top only C
Apply to left and right D
Remove all borders
Analysis & Theory
`border-top` specifically affects the top side of the element.