What are the CSS selectors?

We can set styles for a HTML element by using tag name as the selector. CSS supports to create our own selectors. There are two types of selectors we can create. One is called “id” and other other is “class”.