Practice free →
HomeMaharashtra HSC Class 12 (Arts)informationtechnologyCascading Style Sheets in HTML5 › In a CSS rule, what punctuation separates a prop…

In a CSS rule, what punctuation separates a property name from its value?

APeriod (.)
BArrow (->)
CColon (:)
DEquals sign (=)
Answer & Solution
Correct answer: C. Colon (:)
1. The CSS Syntax section explains declaration syntax. 2. 'Each declaration contains a property name and value, separated by a colon.' 3. Example: 'color: yellow' — colon separates property 'color' from value 'yellow'. 4. The semicolon separates declarations, not property from value. _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