-
margin
-
spacing
-
padding
-
border
Test of CSS knowledge - Part 6
Test your knowledge of CSS with interesting multiple choice questions.
-
Question 1: What attributes are used to create distances between elements?
-
Question 2: Which attribute is used to create the distance between the border and the content inside the element?
-
margin
-
spacing
-
padding
-
border
-
-
Question 3: What attributes are used to create space between text lines?
-
line-spacing
-
line-height
-
spacing
-
letter-spacing
-
-
Question 4: How can I format the elements on the same row?
-
display: left;
-
display: inline;
-
display: horizontal;
-
There is no right answer
-
-
Question 5: If you want to create an interesting footer attached to the bottom of the user window (not just at the bottom of the page), what attributes would you use?
-
position and bottom
-
display and float
-
position and float
-
display and bottom
-
-
Question 6: What attributes are needed to install an image in the background?
-
image
-
background-image
-
background: image
-
image: background
-
-
Question 7: What is the valid CSS attribute used to place an element on the right side of its container?
-
display: right;
-
float-right: 0px;
-
display-right: 0px;
-
float: right;
-
-
Question 8: In a table, how to get the background color of alternating rows?
-
tr: even {background-color: #CCC;}
-
td: even {background-color: #CCC;}
-
td: nth-child (even) {background-color: #CCC;}
-
tr: nth-child (even) {background-color: #CCC;}
-
-
Question 9: What attributes would you use to change the border of the element?
-
border-size: 5px;
-
border: width: 5px;
-
border-width: 5px;
-
border: size: 5px;
-
-
Question 10: What attributes are used to change the display list type to Roman numerals instead of normal numbers?
-
list-style-type: upper-roman;
-
list-type: roman;
-
list-bullet-type: roman-numerals;
-
list-style: roman;
-
You've just finished reading the article "Test of CSS knowledge - Part 6" edited by the TipsMake team. You can save test-of-css-knowledge-part-6.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.