Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

what symbol is used to indicate the end of a style rule in css? comma s…

Question

what symbol is used to indicate the end of a style rule in css?
comma
semicolon
period
colon

Explanation:

Brief Explanations

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).

Answer:

Semicolon