Avoid combining a class or ID selector with a type selector as they are less specific. The benefit of class and id attributes is that you have the option of naming them something descriptive which makes the code more readable. An alternative would be to give the h2 selector a descriptive class or ID.
Avoid combining a class or ID selector with a type selector as they are less specific. The benefit of
class
andid
attributes is that you have the option of naming them something descriptive which makes the code more readable. An alternative would be to give theh2
selector a descriptive class or ID.