How can you override inline styles with external CSS?

Instruction: Describe the method to override inline styles.

Context: This question tests the candidate's knowledge of CSS specificity and the techniques to override inline styles using external stylesheets.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

An ordinary author stylesheet declaration cannot beat a normal inline declaration merely by adding IDs or classes. An author !important declaration can override a normal inline declaration for the same property. Importance is a separate cascade stage, not an increase in selector specificity.

Save the following page beside override.css:...

Related Questions