8) What is a CSS selector?

It is a string that identifies the elements to which a particular declaration applies. It is also referred to as a link between the HTML document and the style sheet. It is the equivalent of HTML elements. There are several different types of selectors in CSS: –

CSS Element Selector
CSS Id Selector
CSS Class Selector
CSS Universal Selector
CSS Group Selector