querySelectorAll() can use CSS selectors to target elements. This includes tag names, class names (with a . prefix), IDs (with a # prefix), attribute selectors (using [attribute="value"]), pseudo-classes (like :hover or :nth-child), and combinations of these.