1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 9
  4. Which CSS selector targets an element by its id?

Added 9 Nov 2026

Which CSS selector targets an element by its id?

  1. . (dot)
  2. # (hash) Correct answer
  3. * (asterisk)
  4. > (greater than)

Correct answer

B. # (hash)

17 views

MCQSEXAM

Explanation

The # symbol targets an element by id. Source: Nabeel Academy, Chapter 3 MCQs (CSS section).

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 9 MCQs

Practise all Computer Science FBISE Class 9 MCQs

Similar MCQs