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.
Keep practising HTML, CSS and Scratch
Browse all HTML, CSS and Scratch questions for Olympiad (Class 6), or explore more Computer Science topics.
Related questions
Before its current name, the Scratch Foundation was known as what?A Scratch 2.0 project file is essentially which kind of file?Which more advanced visual language was inspired by Scratch?Which file format does Scratch 3.0 use for projects?Scratch 3.0 supports which kind of arrays, called lists?Scratch 2.0 was released in which year?In which year was Scratch 3.0 first released as a full version?Scratch is event-driven with many active objects. What are they called?