PrepAway - Latest Free Exam Questions & Answers

Which style sheet has the second highest priority?

You work as a developer at ABC.com. The ABC.com network consists of a single domain named
ABC.com. You make use of CSS3 and HTML5 for development purposes.
You are in the process of creating a new application, whose pages have styles configured from a
few consequential style sheets.
Which style sheet has the second highest priority?

PrepAway - Latest Free Exam Questions & Answers

A.
user important style sheets

B.
author important style sheets

C.
user agent style sheets

D.
user normal style sheets

E.
author normal style sheets

Explanation:

4 Comments on “Which style sheet has the second highest priority?

  1. karen anderson says:

    order from least to highest priority is:

    user agent
    user normal
    author normal
    author important
    user important

    so Author important is the second highest priority from specification

    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.




    2



    0

Leave a Reply