Which CSS selector targets elements with a specific class?
-
A
# (hash)
-
B
. (dot)
Correct answer
-
C
* (asterisk)
-
D
> (greater than)
Correct answer
B. . (dot)
11 views
Explanation
The . (dot) selector targets elements by class. Source: Standard CSS content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ