nerdexam
CIW

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…

Advanced CSS3 Styling and Layout

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)
  • A
    3% (1)
  • B
    94% (31)
  • D
    3% (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

#CSS selectors#element targeting#CSS syntax#styling rules

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice