Practice free →
HomeMaharashtra HSC Class 12 (Arts)informationtechnologyCascading Style Sheets in HTML5 › Which embedded CSS code, placed inside <style> t…

Which embedded CSS code, placed inside <style> tags, would make h1 elements red?

Ah1 = red;
B<h1 color=red> as per the chapter
Ch1 { color: red; }
Dset h1 to red
Answer & Solution
Correct answer: C. h1 { color: red; }
1. The CSS Syntax section shows the correct format. 2. A rule begins with a selector (h1), followed by a declaration block in braces. 3. Inside braces: property:value pairs separated by semicolons. 4. The valid CSS is 'h1 { color: red; }'. _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