Controlling Inheritance Examples & Specificity



Heading with no class

Heading with class of small

Heading with class of bright


With css selector "li a" valued to the color red, (a {color: red}) the above first and last list item links will become red.


This is a paragraph.

One selector to rule them all!

You should only have one element type with each unique ID on a page, however, you may have many elements with the same class on a page.