Mid JavaScript

!important overrides all (use sparingly).?

Example:

p { color: black; } /* low */

#intro { color: blue; } /* higher */

<p id="intro" style="color:red;">text</p> <!-- highest -->

Key Takeaway:

Use balanced specificity; avoid overuse of !important.

More from JavaScript Tutorial

All questions for this course