css Flashcards
declare that a page is using an external style sheet using html
what is one difference in using @import vs a css style in regards to browsers
some browsers will hide @import from user in source
when using css and @import, where does the @import need to be located
at the top, preceeding other elements
in regards to @import, what is one disadvantage in regards to performance
each @import must call back to the server
in css what does a universal selector accomplish
selects every element on a page
how do you use a universal selector in css
*{ }
browsers have a user agent style sheet that accomplishes what
sets a default style to elements on a page, i.e. padding, margin etc.
the universal selector trumps inheritance in css t, or f
true
in css what does a type selector accomplish
selects a page element i.e. h1, p, etc
in css define a type selector
elementname { style properties }
in css define a descendent selector
selector1 selector2 { style properties }
in css define an element with two classes
div class=”class1 class2”
in css define a descendent selector with the first element being a class
.class1 selector1
in css which has more weight in importance, class or id
id
in an external css style sheet, define a style for two classes
.class1, .class2 {
style
}
in css what symbol defines a child combinator
>
in css define a child combinator
an element directly nested within an element
in css what symbol defines an adjacent sibling combinator
+