PrepAway - Latest Free Exam Questions & Answers

Which style should you use?

Your company uses a third-party component that generates HTML for a website. The third-party component
creates DIV elements that display a yellow background.
The third-party component uses inline styles in the DIV elements that are inconsistent with your corporate
standards. You must override the DIV elements in the style sheet with the corporate styles.
You need to ensure that the website meets corporate standards.
Which style should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
CSS attempts to create a balance of power between author and user style sheets. By default, rules in an
author’s style sheet override those in a user’s style sheet.
However, for balance, an “!important” declaration (the delimiter token “!” and keyword “important” follow the
declaration) takes precedence over a normal declaration. Both author and user style sheets may contain
“!important” declarations, and user “!important” rules override author “!important” rules. This CSS feature
improves accessibility of documents by giving users with special requirements (large fonts, color combinations,
etc.) control over presentation.
Assigning property values, Cascading, and Inheritance, !important rules


Leave a Reply