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?
- margin
- spacing
- padding
- border
-
- 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;
-
Discover more
Quizzes programming language tests css languages you know anything about css CSS learning web programming css tests web programming tests css knowledge tests css css exercisesShare by
Marvin Fry
Update 24 May 2019
You should read it
- Test of CSS knowledge - Part 5
- Test of CSS knowledge - Part 8
- What do you know about programming language C # P1
- eQuiz - Test of knowledge about the browser
- Test common knowledge about social culture P1
- The Quiet Details That Make a Sports Betting Platform Feel Reliable
- Instructions on creating toy set images with ChatGPT AI
- How are AI agents changing the journalism industry?
- Test of CSS knowledge - Part 7
- Test of CSS knowledge - Part 8
- Test of CSS knowledge - Part 9