In the tutorial for beginners you used four basic selectors to apply styles to different parts of the HTML. They were:
- type selectors to style all elements of one type
- id selectors to style just one element
- class selectors to style more than one element but not all
- pseudoclasses to style elements in certain circumstances or to style the root element
It is also possible to style elements based on where they appear in the DOM (what contains them and what they contain) and to style more than one thing at a time (e.g. a type and a class). These are not needed but are more flexible and efficient than the basic methods used individually.