Home › Maharashtra HSC Class 12 (Arts) › informationtechnology › Cascading 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_
Related questions
In a CSS rule, what punctuation separates a property name from its value?In the CSS syntax 'Selector{Property1: value1; Property2: value2}', what separates declaraHow does the textbook describe the main benefit of CSS for multi-page websites?What does h1{padding:30px} accomplish per the table?Which embedded CSS placement is correct in an HTML document?Per the textbook, what is unique about an id in HTML?If an HTML element has id='para1', which CSS selector targets it?In CSS h1{margin-left:10px}, what does this rule accomplish?