Amandeep Pasricha14,929 Points
Why doesn't the CSS file contain the specific tags attached to the class names?
Amandeep Pasricha [10:09 PM]In the CSS file, why are the class names not shown with their specific tags (such as <h1, <p,<img). Its usually the big tag, such as the header tag along with the class name that gets shown, but wouldn’t it make sense if the specifc tags were shown next to the class names (ex. tag, location, etc)?
Steven Parker186,894 Points
Using just a class name as a CSS selector can help make the code more compact, and allow tags of different types to share the same styling. It is considered a "best practice".
Using more selectors than needed is excessive specificity and can have unintended side-effects on the styling.