Test of CSS knowledge - Part 6

Test your knowledge of CSS with interesting multiple choice questions.

  1. Question 1: What attributes are used to create distances between elements?
    1. margin
    2. spacing
    3. padding
    4. border
  2. Question 2: Which attribute is used to create the distance between the border and the content inside the element?

    1. margin
    2. spacing
    3. padding
    4. border
  3. Question 3: What attributes are used to create space between text lines?
    1. line-spacing
    2. line-height
    3. spacing
    4. letter-spacing
  4. Question 4: How can I format the elements on the same row?
    1. display: left;
    2. display: inline;
    3. display: horizontal;
    4. There is no right answer
  5. 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?
    1. position and bottom
    2. display and float
    3. position and float
    4. display and bottom
  6. Question 6: What attributes are needed to install an image in the background?
    1. image
    2. background-image
    3. background: image
    4. image: background
  7. Question 7: What is the valid CSS attribute used to place an element on the right side of its container?
    1. display: right;
    2. float-right: 0px;
    3. display-right: 0px;
    4. float: right;
  8. Question 8: In a table, how to get the background color of alternating rows?
    1. tr: even {background-color: #CCC;}
    2. td: even {background-color: #CCC;}
    3. td: nth-child (even) {background-color: #CCC;}
    4. tr: nth-child (even) {background-color: #CCC;}
  9. Question 9: What attributes would you use to change the border of the element?
    1. border-size: 5px;
    2. border: width: 5px;
    3. border-width: 5px;
    4. border: size: 5px;
  10. Question 10: What attributes are used to change the display list type to Roman numerals instead of normal numbers?
    1. list-style-type: upper-roman;
    2. list-type: roman;
    3. list-bullet-type: roman-numerals;
    4. list-style: roman;
Update 24 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile