1D0-720 · Question #107
What does the CSS term 'selector' refer to?
The correct answer is B. The HTML element that is targeted by the CSS rules. A CSS selector is the part of a CSS rule that identifies which HTML element(s) the styles should be applied to - for example, p, .classname, or #id all select specific elements before the declaration block { }. Option A is wrong because CSS doesn't call JavaScript functions…
Question
What does the CSS term 'selector' refer to?
Options
- AA JavaScript function called within the CSS file.
- BThe HTML element that is targeted by the CSS rules.
- CThe server that hosts the CSS files.
- DThe protocol used to transfer CSS files.
How the community answered
(33 responses)- A3% (1)
- B94% (31)
- D3% (1)
Explanation
A CSS selector is the part of a CSS rule that identifies which HTML element(s) the styles should be applied to - for example, p, .classname, or #id all select specific elements before the declaration block { }. Option A is wrong because CSS doesn't call JavaScript functions; option C is wrong because a "server" is infrastructure, unrelated to CSS syntax; option D is wrong because file transfer protocols (like HTTP) are a networking concern, not a CSS concept.
Memory tip: Think of a selector as a TV remote - it "selects" the channel (element) you want to control before changing its settings (styles).
Topics
Community Discussion
No community discussion yet for this question.