SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
CSS 3
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Sequence in which styles are applied: _______ - embedded - inline
clickable
block
Box Model
external
2. There are ____ descriptive color names
adjacent sibling
16
-o-
last
3. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
attribute selectors
height
min-width
pseudo-class
4. Default for the media attribute
screen
embedded styles
em
descendant
5. h1, h2, h3 {color: blue;} is an example of _____
ul{ list-style: none;}
#F9A
child
multiple selectors
6. The p.highlight selector is more _____ than the .highlight selector
<li>
specific
position (with values: left, center, right, top, center, bottom)
visited
7. To mark a rule so that it will override any other rules
screen
ul{ list-style: none;}
!important
embedded styles
8. Attribute for an external style sheet
block
type
rel="stylesheet"
:focus pseudo-class
9. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
position (with values: left, center, right, top, center, bottom)
formatting
class (.)
<li>
10. Rules with a higher _____ are the ones that will be used
!important
-webkit-
specificity
embedded styles
11. Three ways to specify colors in traditional CSS:color name - RGB - _______
specificity
-webkit-
http://html5shiv.googlecode.com/svn/trunk/html5.js
HEX code
12. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
rel="stylesheet"
box-shadow
height
user style sheet
13. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
attachment (with values of 'scroll' or 'fixed')
collapsed
Relative
<li>
14. border shorthand syntax
unordered (<ul>)
border: [width] [style] [color];
em
id
15. HSL: Hue - Saturation - ______
Lightness
pseudo-classes
general sibling (new to CSS3)
block
16. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. #main li { color: green;} is an example of a _____ selector
<style>
min-width
visited
descendant
18. Attribute specifying the location of an external style sheet
href="<relative URL here>"
pseudo-classes
box-shadow
Relative
19. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Box Model
general sibling (new to CSS3)
-moz-
20. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
descendant
collapsed
rel="stylesheet"
HEX code
21. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
general sibling (new to CSS3)
Pseudo-elements
pseudo-class
22. Shorthand border syntax
collapsed
border: [width] [style] [color];
position (with values: left, center, right, top, center, bottom)
border: [width] [style] [color];
23. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
a img {border: none;}
descendant
HEX code
unordered (<ul>)
24. h2+p { margin-top: .5em} is an example of a _____ selector
-moz-
zero out
screen
adjacent sibling
25. In a navigation bar (horizontal): Code <a> elements nested in <li> elements of an _____ list and style the <li> elements as inline using the display property
16
child
specificity
unordered (<ul>)
26. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
specificity
reset
attachment (with values of 'scroll' or 'fixed')
block
27. These 'flavors' of selectors are often used by JavaScript
attribute selectors
media
attribute
border: [width] [style] [color];
28. CSS is a special language used just for _____
formatting
rel="stylesheet"
Nothing! the values are not comma separated (delimited)
descendant
29. HSLA: Hue - Saturation - Lightness - _____
:focus pseudo-class
!important
descendant
Alpha
30. Tag used to bring CSS into a web page from an external source
!important
link
href="<relative URL here>"
id
31. Two new box model properties in CSS3: border-radius and ________
reset
height
box-shadow
clickable
32. The 'internal' space between content area & border
specificity
padding
min-width
descendant
33. [ ] are indicative of _______ selectors
class
attribute
Pseudo-classes
position (with values: left, center, right, top, center, bottom)
34. ________ are selectors that let you select a portion of text
Pseudo-elements
http://html5shiv.googlecode.com/svn/trunk/html5.js
-o-
min-width
35. HTML tag used for embedded styles
box-shadow
<style>
Lightness
a:link{text-decoration: none;}
36. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
:focus pseudo-class
block
min-width
user style sheet
37. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
zero out
attribute
collapsed
multiple selectors
38. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
:focus pseudo-class
collapsed
multiple selectors
Firefox
39. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
min-width
embedded styles
class
attribute
40. The default width of an element:As wide as the ______ that contains it
child
Lightness
block
pseudo-classes
41. Shorthand for background property
multiple selectors
background: [color] [image] [repeat] [attachment] [position];
pseudo-classes
screen
42. A rule to remove a hyperlink border from around an image hyperlink
*
a img {border: none;}
-o-
attribute
43. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
background-image: linear-gradient(direction, color %, color %, ...);
external
-moz-
position (with values: left, center, right, top, center, bottom)
44. Five common CSS pseudo classes:link - _______ - active - hover - focus
class
visited
width
only-child
45. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
height
Box Model
attachment (with values of 'scroll' or 'fixed')
Pseudo-elements
46. Shortcut HEX code for #FF99AA
#F9A
href="<relative URL here>"
http://html5shiv.googlecode.com/svn/trunk/html5.js
attachment (with values of 'scroll' or 'fixed')
47. The 'external' space or 'force field' between an element & it's containing element
Pseudo-elements
descendant
margin
Lightness
48. Three ways to code CSS3 colors: _____ - HSL - HSLA
first-letter
RGBA
width
block
49. Prefix for linear gradient commands in Opera
-o-
adjacent sibling
Chrome & Safari
box-shadow
50. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
a img {border: none;}
block
http://html5shiv.googlecode.com/svn/trunk/html5.js
attribute selectors