CSS नियम सेट में एक चयनकर्ता और एक घोषणा ब्लॉक होता है।
A CSS rule set contains a selector and a declaration block.
A
True
B
False
C
D
Explanation
Yes, that's correct! A CSS rule set consists of two main parts: the selector and the declaration block.
Here’s a detailed breakdown:
1. Selector:
The selector targets the HTML elements that you want to style. It can be any valid CSS selector, such as:
- Element selectors (e.g.,
p,div,h1), - Class selectors (e.g.,
.class-name), - ID selectors (e.g.,
#id-name), - Attribute selectors (e.g.,
[type="text"]), - Pseudo-classes (e.g.,
:hover,:first-child), - Pseudo-elements (e.g.,
::after,::before).2. Declaration Block:
The declaration block contains one or more declarations that define the style rules for the selected elements. Each declaration is a property-value pair, and each declaration is separated by a semicolon.
Correct Answer: A) True