Match the whole word, could be followed by a hyphen (-). This will match "real" and "real-top" as well
Matches "real" , "realistic"
Matches "real" , "noreal"
Matches "real" , "real-top", "realistic", "noreal", "list of real things"
Matches "list of real things"
Which color is applied to name?
Text
Having the following HTML and CSS code:
"Start at 0, add 1000 for style attribute, add 100 for each ID, add 10 for each attribute, class or pseudo-class, add 1 for each element name or pseudo-element." w3schools
Can't be overwritten from non in-line style
# ID
# Class, Pseudo-class, attribute
# Element, pseudo-element
Specificity level
+
+
=
+
+
=
# ID
# Class, Pseudo-class, attribute
# Element, pseudo-element
Specificity level
You don't have to make the sum, just count items and stack the totals horizontally
Going back to our question, let's calculate the specificity level for each selector
simple example in codePen
THANK YOU!
CSS ROCKS!!