Complete the code to add a solid border to the box.
div {
border-style: [1];
}The border-style property sets the style of the border. solid creates a continuous line.
Complete the code to set the border width to 3 pixels.
div {
border-width: [1];
}The border-width property sets the thickness of the border. Using 3px sets it to 3 pixels.
Fix the error in the code to correctly set a dashed border.
div {
border-style: [1];
}The correct value for a dashed border is dashed. Other options are invalid CSS values.
Fill both blanks to create a red, double border.
div {
border-style: [1];
border-color: [2];
}border-style: double; creates a double line border.border-color: red; colors the border red.
Fill all three blanks to create a 5px dotted green border.
div {
border-width: [1];
border-style: [2];
border-color: [3];
}Set border-width to 5px for thickness.
Use dotted for the style to get dots.
Set border-color to green for the color.
