CSS Selectors
CSS selectors are HTML tags to which a CSS style is applied. This could be any tag like < p > or < h1 > etc. These are patterns used to select the HTML tags that you want to style. These patterns may range from simple element names to rich contextual patterns.
![](https://www.corelangs.com/wp-content/uploads/2024/05/rule.png)
In the following sections, looking at how you can use different types of a selectors to specify which elements a style sheet rule can apply to.
![](https://www.corelangs.com/wp-content/uploads/2024/05/selectors.png)
Element Selector or Type Selector
The CSS element Selector or the type selector matches occurrences of those tags specified in the list.
![](https://www.corelangs.com/wp-content/uploads/2024/05/type-selector.png)