Vidyalelo
CSS · Q19

CSS Selectors and CSS Files

Programming · CSS · question 19

Q19

By applying an ___________ a style can be applied to just a single tag.

A.
class rule
B.
element rule
C.
id rule
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
By applying an id rule, a style can be applied to just a single tag. For example, if we name a tag with a unique id attribute as follows
<tag id="id-value">Affected Text</tag>