Understanding the Element Selector in CSS
The element selector in CSS targets all HTML elements of a specific type. It applies the defined style rules to every instance of that HTML element on the page. This selector is also known as a type selector.
Selects elements by their HTML tag name (e.g., div, p, h1).
Applies styles to all matching elements globally unless overridden.
Has low specificity compared to class or ID selectors.
Useful for setting default styles for common tags.