PrepAway - Latest Free Exam Questions & Answers

which order should you use the five style sheets?

DRAG DROP
You are creating an application by using HTML5 and CSS3. The styles for the pages are derived from
five style sheets.
The styles are not being applied correctly to the pages in the application.
You need to apply the styles from highest priority to lowest priority.
In which order should you use the five style sheets? (To answer, move the style sheet types from the
list of style sheet types to the answer area and arrange them in the correct order.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

Reference:
http://www.w3.org/TR/CSS21/cascade.html
From highest priority to lowest priority.
User important style sheets
Author important style sheets
Author normal style sheets
User normal style sheets
User agent style sheets
It is pretty clear in this article: http://www.quora.com/In-what-order-do-CSS-definitions-takepriority
CSS declarations are applied in this order (from lowest to highest priority):
· User agent declarations (the default styles your browser applies to elements)
· User normal declarations (a user’s own stylesheet if they’re using one)
· Author normal declarations (this is your normal stylesheet)
· Author important declarations (anything your mark important)
· User important declarations (any important styles from the user’s stylesheet)

One Comment on “which order should you use the five style sheets?

  1. Firefox360 says:

    Watch out!: This question says/asks: “You need to apply the styles from highest priority to lowest priority.” There is also a question that asks to apply from lowest to highest!!!




    0



    0

Leave a Reply