QUESTION IMAGE
Question
what symbol is used to indicate the end of a style rule in css?
comma
semicolon
period
colon
In CSS (Cascading Style Sheets), a style rule is composed of a selector and a declaration block. The declaration block contains property - value pairs. Each property - value pair is separated by a semicolon (;). For example, p { color: red; font - size: 16px; } - here, the semicolon indicates the end of each individual property - value pair (and also, in a sense, the end of the style rule's property - value definitions within the block). A comma (,) is used for separating multiple selectors (e.g., p, div). A period (.) is used for class selectors (e.g., .myClass). A colon (:) is used to separate a property from its value within a declaration (e.g., color: red).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Semicolon