Start learning →

An id rule and a class rule both colour one paragraph. Which one wins?

AThe id rule
BThe class rule
CThe older rule
DThe longer rule
Answer & Solution
Correct answer: A. The id rule
An ID selector has specificity 1,0,0, which outweighs a class selector's 1,0.
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