Element Selector |
Example p |
Here all p elements on the Page will be selected |
id Selector |
#id |
The ID selector uses the id attribute of an HTML element to select a specific element |
Class Selector |
.class |
The class selector selects HTML elements with a specific class attribute |
Element Class Selector |
element.class / p.intro |
Selects only p elements with class="intro" |
Universal Selector |
* |
The universal selector * selects all HTML elements on the page |
Grouping Selector |
for example h1 |
The grouping selector selects all the HTML elements with the same style definitions |