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 determine the order in which the style sheets will be applied by the browser.
In which order will the five style sheets be applied? (To answer, move the style sheet types from the
list of style sheet types to the answer area and arrange them in the order that they will be applied.)
Answer: See the explanation.
Explanation:
Box 1: user agent style sheets
Box 2: user normal style sheets
Box 3 author normal style sheets:
Box 4: author important style sheets
Box 5: user important style sheetsNote:
The order of declarations from least important to most important:
1. user agent declarations
2. user normal declarations
3. author normal declarations
4. author important declarations
5. user important declarations
OK
http://www.w3.org/TR/CSS21/cascade.html#cascading-order
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)
Terminator is right.
I think this is wight
Box 1: user normal style sheets
Box 2: author normal style sheets
Box 3:author important style sheets
Box 4: user important style sheets
Box 5: user agent style sheets
You are wrong. http://www.w3.org/TR/2011/REC-CSS2-20110607/cascade.html#cascade
wrong
So, it has to be in order from lowest to highest priority? Why?
Why not from highest to lowest? To me, that makes more sense..
Highest to lowest is in fact a different question…