Back to Web Development
15 Questions Total

CSS Fundamentals MCQs

Topic-wise practice questions for Web Development. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q1easy
What will be the result of the following CSS selector: ul li:first-

child?
Q2easy
Given the CSS below, what will be the total width of the div element in the browser?
Q3easy
What does z-index: 100; do?
Q4easy
Which CSS property is used to change the text color of an element?
Q5easy
What happens to the layout when using box-sizing: border-box;?
Q6easy
What does the position: absolute; property do?
Q7medium
You want an element to be removed from the document layout entirely, as if it doesn't exist, while still being present in the HTML. Which property achieves this?
Q8easy
What is a CSS Pseudo-element like ::before used for?
Q9easy
What is the difference between display: inline; and display:

inline-block;?
Q10easy
Which CSS selector has the highest specificity and will override others?