An identifier definition in HTML / CSS is one instance of an element. Assuming you follow this rule, all you need is an identifier for this element. The browser will search and detect this item and stop.
With your βhintβ, he will first start searching for the first element, then the second, then the third, to a halt. This, as you can see, is more inefficient.
When working with classes, this can become a bit more ambiguous and fuzzy, but the general rule is that the fewer selectors, the better. If you find yourself doing three, four, or five selectors, you should consider a little refactoring, such as adding classes or identifiers in strategic places, or even not so specific to your CSS selectors.
source share