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. Three ways to specify colors in traditional CSS:color name - RGB - _______
reset
<li>
:focus pseudo-class
HEX code
2. A rule to remove bullets from a list
ul{ list-style: none;}
descendant
Firefox
class
3. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
em
rel="stylesheet"
height
http://html5shiv.googlecode.com/svn/trunk/html5.js
4. Prefix for linear gradient commands in Safari & Chrome
ul{ list-style: none;}
<li>
Box Model
-webkit-
5. There are ____ descriptive color names
16
external
-webkit-
zero out
6. A rule to remove a hyperlink border from around an image hyperlink
margin
a img {border: none;}
-moz-
pseudo-classes
7. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
height
Pseudo-elements
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Alpha
8. The 'internal' space between content area & border
position (with values: left, center, right, top, center, bottom)
padding
type
last
9. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
embedded styles
-o-
Alpha
pseudo-class
10. h2~p { margin-left: 2em; } is an example of a ______ selector
min-width
attachment (with values of 'scroll' or 'fixed')
margin
general sibling (new to CSS3)
11. Rules with a higher _____ are the ones that will be used
specificity
screen
attachment (with values of 'scroll' or 'fixed')
Pseudo-classes
12. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
attribute selectors
*
#F9A
13. Three ways to code CSS3 colors: _____ - HSL - HSLA
-moz-
background: [color] [image] [repeat] [attachment] [position];
attribute selectors
RGBA
14. _______ are predefined classes that apply to specific conditions
background-image: linear-gradient(direction, color %, color %, ...);
padding
last
Pseudo-classes
15. Default for the media attribute
screen
rel="stylesheet"
<style>
href="<relative URL here>"
16. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
#F9A
user style sheet
child
link
17. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
screen
background-image: linear-gradient(direction, color %, color %, ...);
background: [color] [image] [repeat] [attachment] [position];
<li>
18. To make sure someone who can't use a mouse has the same experience as a 'mouser' style the :hover pseudo-class the same as the ______
Chrome & Safari
Alpha
collapsed
:focus pseudo-class
19. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Nothing! the values are not comma separated (delimited)
Lightness
box-shadow
20. ________ are selectors that let you select a portion of text
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
href="<relative URL here>"
margin
Pseudo-elements
21. HSLA: Hue - Saturation - Lightness - _____
Alpha
!important
attachment (with values of 'scroll' or 'fixed')
external
22. 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
23. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
!important
attribute selectors
href="<relative URL here>"
24. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
box-shadow
Box Model
attribute selectors
unordered (<ul>)
25. List alignments work best with ____ measurements
min-width
-o-
em
pseudo-class
26. Two common pseudo-elements: ______ - first-line
attribute selectors
Firefox
first-letter
RGBA
27. Tag used to bring CSS into a web page from an external source
block
#F9A
link
Pseudo-elements
28. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
attribute
-o-
attachment (with values of 'scroll' or 'fixed')
29. Shorthand border syntax
border: [width] [style] [color];
attachment (with values of 'scroll' or 'fixed')
Firefox
16
30. Backwards compatibility for __________ & shadows -webkit-box-shadow
attribute selectors
em
Chrome & Safari
background-image: linear-gradient(direction, color %, color %, ...);
31. HSL: Hue - Saturation - ______
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
position (with values: left, center, right, top, center, bottom)
block
Lightness
32. Shorthand for background property
block
background: [color] [image] [repeat] [attachment] [position];
*
position (with values: left, center, right, top, center, bottom)
33. #main li { color: green;} is an example of a _____ selector
:focus pseudo-class
descendant
Chrome & Safari
last
34. The 'external' space or 'force field' between an element & it's containing element
visited
reset
margin
block
35. Keyword with 'background' that specifies if and how an image repeats
16
media
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
screen
36. [ ] are indicative of _______ selectors
attribute
reset
width
attribute
37. Attribute specifying the location of an external style sheet
href="<relative URL here>"
block
position (with values: left, center, right, top, center, bottom)
ul{ list-style: none;}
38. Two new box model properties in CSS3: border-radius and ________
rel="stylesheet"
box-shadow
a:link{text-decoration: none;}
block
39. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
formatting
position (with values: left, center, right, top, center, bottom)
class (.)
id
40. _____ measurements are recommended for font sizes
box-shadow
background: [color] [image] [repeat] [attachment] [position];
Relative
ul{ list-style: none;}
41. Because different browsers have different default margins for block elements you often need to ________ those values using the * (wildcard) selector and set the margins explicitly
zero out
a img {border: none;}
!important
attribute
42. These 'flavors' of selectors are often used by JavaScript
specificity
only-child
type
attribute selectors
43. h1, h2, h3 {color: blue;} is an example of _____
RGBA
em
width
multiple selectors
44. In a set of possibly conflicting rules the one that is mentioned _____ is the one that will be used and all other things being equal
class
href="<relative URL here>"
user style sheet
last
45. Sequence in which styles are applied: _______ - embedded - inline
type
Relative
adjacent sibling
external
46. #main>p{ font-size: 11pt; } is an example of a ______ selector
margin
child
*
unordered (<ul>)
47. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
#F9A
width
min-width
external
48. HTML tag used for embedded styles
descendant
border: [width] [style] [color];
margin
<style>
49. Wildcard (universal selector) to select all elements
border: [width] [style] [color];
formatting
*
adjacent sibling
50. Attribute for an external style sheet
:focus pseudo-class
first-letter
rel="stylesheet"
only-child