Start learning →

What does the rule div .myClass {color: red;} colour?

AOnly one myClass item
BDivs inside myClass
CEvery div on the page
DmyClass items in a div
Answer & Solution
Correct answer: D. myClass items in a div
The space is a descendant combinator, so it targets myClass elements located inside div elements.
Practise this question with Quill — Olympiad (Class 6) →

Keep practising HTML, CSS and Scratch

Browse all HTML, CSS and Scratch questions for Olympiad (Class 6), or explore more Computer Science topics.

Start a HTML, CSS and Scratch lesson →
Related questions