Research & Define CSS Terms
-
Specificity is how the browser decides which CSS property to render by means of a ranking system
based on
the
type and number of selectors used.
-
In the case where two selectors carry the same weight, precedence means the browser will display
the
selector
that is closest to the html element.
-
Inheritance means that a child element will inherit the CSS styles of its parent as long as a
different
selector
isn’t applied to the child element.
-
The selector identifies the HTML element to be styled. In the rule "color: red", "color" is the
property; it dictates which aspect of the selector will be changed visually. "Red" is the
value; it is what the chosen CSS property will be changed to.