1. What does CSS stand for?
a) Creative Style Sheets
b) Computer Style Sheets
c) Cascading Style Sheets
d) Colorful Style Sheets
ย
2. Which HTML tag is used to link an external CSS file?
a) <css>
b) <style>
c) <link>
d) <script>
ย
3. Which property is used to change the background color?
a) color
b) bgcolor
c) background
d) background-color
ย
4. How do you insert a comment in a CSS file?
a) // comment
b) /* comment */
c) <!– comment –>
d) # comment
ย
5. Which property is used to change the text color of an element?
a) font-color
b) text-color
c) color
d) text-style
ย
6. How do you select an element with id “header” in CSS?
a) #header
b) .header
c) header
d) *header
ย
7. Which CSS property controls the text size?
a) font-style
b) text-size
c) font-size
d) text-style
ย
8. How do you make a list not display bullets?
a) list: none;
b) bullet: 0;
c) list-style-type: none;
d) text-decoration: none;
ย
9. Which property is used to make text bold?
a) font-weight
b) font-bold
c) bold-style
d) text-style
ย
10. Which CSS property is used to add space inside an element’s border?
a) margin
b) spacing
c) padding
d) border-spacing
ย
11. What does the z-index property in CSS control?
a) The zoom level of an element
b) The stacking order of elements
c) The size of an element
d) The horizontal alignment
ย
12. Which property is used to float elements in CSS?
a) align
b) float
c) position
d) display
Sign in to your account