Topic 3: CASCADING STYLE SHEETS (CSS)
Poll Questions:
1. What is the purpose of the `color` property in CSS?
A) To specify the background color of an element
B) To specify the text color of an element
C) To specify the border color of an element
D) To specify the font size of an element
2. Which of the following is a CSS selector?
A) `.class`
B) `#id`
C) `tag`
D) All of the above
3. What is the purpose of the `display` property in CSS?
A) To specify the visibility of an element
B) To specify the position of an element
C) To specify the layout of an element
D) To specify the font size of an element
4. Which of the following is a CSS box model property?
A) `margin`
B) `padding`
C) `border`
D) All of the above
5. What is the purpose of the `@media` query in CSS?
A) To specify the layout of an element
B) To specify the font size of an element
C) To apply different styles based on different screen sizes or devices
D) To specify the visibility of an element
6. Which of the following is a CSS preprocessor?
A) Sass
B) Less
C) Stylus
D) All of the above
7. What is the purpose of the `float` property in CSS?
A) To specify the position of an element
B) To specify the layout of an element
C) To position an element to the left or right of its parent element
D) To specify the font size of an element
8. Which of the following is a CSS framework?
A) Bootstrap
B) Foundation
C) Bulma
D) All of the above
9. What is the purpose of the `transform` property in CSS?
A) To specify the position of an element
B) To specify the layout of an element
C) To apply transformations to an element, such as rotation or scaling
D) To specify the font size of an element
10. Which of the following is a CSS validation tool?
A) W3C Validator
B) CSS Lint
C) Stylelint
D) All of the above
Essay Question:
Describe the importance of CSS in modern web development. How does it improve the visual
appearance and user experience of a website? (Word limit: 250)