css-quiz

CSS, or Cascading Style Sheets, is the backbone of web design, allowing developers to create visually appealing and responsive websites. This quiz will take you through a series of questions that cover everything from fundamental concepts to more advanced techniques, ensuring you have a well-rounded understanding of CSS. Good luck and enjoy the challenge!
We recommend that you do not leave the page that you are taking this quiz in. Stay honest 🙂
CSS Quiz
0% Complete
1 of 20
1. What does CSS stand for?
Basic knowledge of CSS.

CSS Quiz Questions Overview

1. What does CSS stand for?

Cascading Style Sheets
Creative Style Sheets
Computer Style Sheets
Colorful Style Sheets

2. Which property is used to change the background color of an element?

color
background-color
bgcolor
background

3. Which CSS property is used to change the text color of an element?

text-color
color
font-color
text-style

4. How do you add a comment in CSS?

// this is a comment
/* this is a comment */
‘ this is a comment

5. Which property is used to change the font of an element?

font-style
font-family
font-weight
font-size

6. Which property is used to change the left margin of an element?

margin-left
padding-left
left-margin
margin

7. How do you make each word in a text start with a capital letter?

text-transform: capitalize
text-transform: uppercase
text-transform: lowercase
text-transform: none

8. Which property is used to change the space between lines of text?

line-height
letter-spacing
text-spacing
font-spacing

9. Which property is used to change the width of an element?

width
height
margin
padding

10. Which property is used to change the height of an element?

height
width
margin
padding

11. Which property is used to change the left padding of an element?

padding-left
margin-left
left-padding
padding

12. Which property is used to change the size of text?

font-size
text-size
font-style
text-style

13. Which CSS property controls the text size?

font-style
text-size
font-size
text-style

14. Which CSS property is used to create space between the element’s border and inner content?

padding
margin
border
spacing

15. Which property is used to change the font size of an element?

font-style
text-size
font-size
text-style

16. Which property is used to change the font weight of an element?

font-weight
font-style
font-size
text-weight

17. Which property is used to change the alignment of text?

text-align
text-decoration
vertical-align
align

18. Which property is used to change the style of the border of an element?

border-style
border-width
border-color
border

19. Which property is used to change the color of the border of an element?

border-color
border-style
border-width
border

20. Which property is used to change the width of the border of an element?

border-width
border-style
border-color
border
We recommend that you do not leave the page that you are taking this quiz in. Stay honest 🙂
We have chosen the next challenge for you. Take the next test:

Can Your Friends Do Better Than You in This Quiz?

Share this quiz with your friends and compare results.

Was this page helpful?