CSS Selectors
3.1
Lesson

Element Selectors

In the example given below, all the h2 elements in the page will have an underline and all the text in the p elements on the page will be dark blue in color.

Selectors like h2 and p are Element Selectors. They select elements using their HTML tag name.