What is an ID selector in CSS and how is it used?
Answers
Answered by
1
In the CSS, a class selector is a name preceded by a full stop (“.”) and an ID selector is a name preceded by a hash character (“#”). The difference between an ID and a class is that an ID can be used to identify one element, whereas a class can be used to identify more than one.
Similar questions
Business Studies,
7 months ago
Math,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago