1D0-720 · Question #45
In CSS, what is the purpose of a 'property'?
The correct answer is B. To specify the aspect of the element to be styled. In CSS, a property names the specific visual characteristic you want to control on an element - such as color, font-size, or margin. Option B is correct because properties always appear in a declaration like property: value;, where the property defines what aspect of styling is…
Question
In CSS, what is the purpose of a 'property'?
Options
- ATo identify a specific HTML element.
- BTo specify the aspect of the element to be styled.
- CTo define the document type.
- DTo link the CSS to HTML files.
How the community answered
(32 responses)- A6% (2)
- B91% (29)
- D3% (1)
Explanation
In CSS, a property names the specific visual characteristic you want to control on an element - such as color, font-size, or margin. Option B is correct because properties always appear in a declaration like property: value;, where the property defines what aspect of styling is being set.
Option A describes a CSS selector, not a property - selectors target which HTML elements receive styles. Option C refers to the <!DOCTYPE> declaration, which is an HTML concept unrelated to CSS properties. Option D describes a <link> tag or @import rule, which are mechanisms for attaching stylesheets, not defining style aspects.
Memory tip: Think of a property as the question and the value as the answer - color: red asks "what color?" and answers "red." Properties always ask what to style.
Topics
Community Discussion
No community discussion yet for this question.