MCQs
Total Questions : 10
Answer: Option D. -> All of the above
Answer: Option A. -> E > F
Example:
body > p {background-color: yellow;}
/* makes all p tags that have the
body tag as their immediate parent
have the background color yellow */
Answer: Option B. -> specificity = 0,0,1,3
Answer: Option C. -> #id
Example:#test {color: green;}
/* makes a tag with id='test' green */
Answer: Option D. -> pseudo-class
Answer: Option A. -> specificity = 0,0,1,3
Answer: Option A. -> :first-of-type
Example: strong:first-of-type {font-size:bigger;}
Answer: Option D. -> all of the above
Answer: Option D. -> specificity = 0,0,0,3
Answer: Option C. -> :not(s)
Example: *:not(h1) {color: black;}