Are you preparing for a web development or design job interview? Or maybe you just want to test your CSS knowledge? Either way, this blog post is for you! We have compiled a list of CSS MCQ questions with answers to help you brush up on your skills. These multiple choice questions cover a wide range of topics within CSS, including selectors, layout, and styling. Whether you are a beginner or an experienced developer, these questions will provide a useful challenge and help you learn more about this important aspect of web development. So, let’s get started and see how much you know about CSS!
CSS MCQ Questions and Answers:
Below, you will find the MCQs for the Cascading Style Sheets (CSS) programming language, which is commonly used to add styling and formatting to web documents.
Q1. What is CSS stands for?
- Cascading Style Sheets
- Cascade Style Sheet
- Color Style Sheets
- Color Style Sheet
1. Cascading Style Sheets
Q2. How to select the elements with the class name “example”?
- example
- #example
- .example
- Class example
3. .example
Q3. What are the valid values of font-style property?
- italic, bold, bolder
- normal, bold, italic
- underline, bold, italic
- inherit, italic, normal, oblique
4. inherit, italic, normal, oblique
Q4. Which of the following is used to specify the subscript of text using CSS?
- vertical-align: sub
- vertical-align: super
- vertical-align: subscript
- None of the mentioned
1. vertical-align: sub
Q5. Which of the following CSS property is used to add shadows to the text?
- text-shadow
- text-stroke
- text-overflow
- text-decoration
1. text-shadow
Q6. Which of the following is not a value of the font-variant property in CSS?
- normal
- small-caps
- large-caps
- inherit
3. large-caps
Q7. What are the valid values of “text-decoration” property?
- overline, line-through, underline, and none
- overline, strike, line-through, underline, and none
- double-line, overline, line-through, underline, and none
- None of the mentioned
1. overline, line-through, underline, and none
Q8. Which CSS property specifies how to align the last line of a text?
- text-align
- last-text-align
- text-align-last-line
- text-align-last
4. text-align-last
Q9. Which CSS property specifies the opacity/transparency of an element?
- transparency
- opacity
- transform-opacity
- opacity-all
2. opacity
Q10. Which CSS function performs a calculation to be used as the property value?
- sum()
- add()
- calc()
- addition()
3. calc()
CSS MCQ Quiz and Online Test:
These CSS MCQ practice sets gives you the feeling of reality and a clue to the questions asked in the actual CSS related exams. When you solve these MCQ questions practically, you come across many difficulties that give you an opportunity to improve.