Font size
WorksheetsThird Qtr quiz no. 3
Total questions: 15
Worksheet time: 8mins
Which of the following CSS properties is used to define the width of a border?
border-style
border-width
border-color
border-spacing
What is the correct way to apply a dashed border to an element?
border: 1px solid red;
border: 2px dashed blue;
border: 3px dotted green;
border: 1px ridge black;
Which property is used to set the color of a border?
border
border-color
outline-color
What is the default border style if none is specified?
solid
dotted
none
hidden
What does the shorthand border property include?
border-style
border-width
border-color
All of the above
How can you set different border styles for each side of an element?
border-style: solid dashed dotted groove;
border: solid dashed dotted groove;
border-width: solid dashed dotted groove;
border-color: solid dashed dotted groove;
Which property allows you to create rounded corners for an element?
border-radius
border-style
border-width
border-spacing
Which CSS property is used to create space around an element, outside of its border?
padding
margin
border-spacing
spacing
How can you set a margin only on the top of an element?
margin: top 10px;
margin: 10px top;
margin-top: 10px;
margin:10px;
What does the shorthand margin property allow you to set?
Margin for all four sides of an element.
Margin for the top and bottom only.
Margin for the left and right only.
Margin for one specific side only.
Which of the following is the correct way to set a margin of 10px on the top and bottom and 20px on the left and right?
margin: 10px 20px 10px 20px;
margin: 10px 20px;
margin: 20px 10px;
What does the CSS padding property do?
Creates space outside the element’s border.
Creates space inside the element’s border.
Defines the width of the border.
Aligns the text inside an element.
How can you set padding only on the left side of an element?
padding: left 10px;
padding-left: 10px;
padding: 10px left;
padding-left: auto;
What does the shorthand padding property allow you to define?
Padding for the top and bottom only.
Padding for all four sides of an element.
Padding for the left and right only.
Padding for one specific side only.
Which shorthand value for padding sets the top padding to 10px, right and left padding to 20px, and bottom padding to 15px?
padding: 10px 20px 15px;
padding: 10px 15px 20px;
padding: 15px 10px 20px;
padding: 10px 20px 15px 20px;
