Practice free →
HomeMaharashtra HSC Class 12 (Arts)informationtechnologyCascading Style Sheets in HTML5 › In CSS syntax 'h1{color:red;}', what part is 'h1'?

In CSS syntax 'h1{color:red;}', what part is 'h1'?

ASelector
BDeclaration
CValue
DProperty
Answer & Solution
Correct answer: A. Selector
1. The CSS Syntax section explains rule-set parts. 2. A rule set has a selector and a declaration block. 3. 'h1' identifies which HTML element to style — this is the selector. 4. 'color' is the property; 'red' is the value; 'color:red' is the declaration. _Source: Maharashtra Balbharati Std XII Information Technology, Ch 1 "Cascading Style Sheets in HTML5", §1.4 ¶1_
Solve this in the app — Maharashtra HSC Class 12 (Arts) practice & 24k+ MCQs →
Related questions