CSS
CSS selectors are used to "find" (or select) the HTML elements you want to
style.
We can divide CSS selectors into five categories:
Simple selectors (select elements based on name, id, class
Pseudo selector (A pseudo-class is used to define a special state of an
element)
Universal Selector (The universal selector (*) selects all HTML elements
on the page.
The CSS id Selector
The id selector uses the id attribute of an HTML element to select a
specific element.
The CSS class Selector
The class selector selects HTML elements with a specific class attribute.
Pseudo-Selector
A pseudo-class is used to define a special state of an element.
It can be used to:
Style an element when a user mouses over it
Style visited and unvisited links differently
Style an element when it gets focus.
The CSS Universal Selector
The universal selector (*) selects all HTML elements on the page.