W3 documentation is very verbose and difficult for a beginner, to interpret
try this: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started
specifically, to answer your question:
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_Started/Selectors