Start learning →

A style attribute says green; a style element says blue. What colour is the paragraph?

ABlue
BGreen
CBlack
DMixed
Answer & Solution
Correct answer: B. Green
The style attribute has higher specificity than the style element, so green applies.
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