CSS Selectors 101: Targeting Elements with Precision
If you yell, "Everyone, put on a red hat!" → That’s an Element Selector.
If you yell, "Everyone in the front row, put on a red hat!" → That’s a Class Selector.
If you yell, "Hey, Steve from Accounting, put on a red hat!" → That’s an ID Selector.
CSS ...
blog.sandipan.ch3 min read