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. Shortcut HEX code for #FF99AA
attribute selectors
em
#F9A
width
2. 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 ______
:focus pseudo-class
HEX code
block
collapsed
3. 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
box-shadow
class (.)
unordered (<ul>)
a img {border: none;}
4. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
:focus pseudo-class
href="<relative URL here>"
box-shadow
Box Model
5. Wildcard (universal selector) to select all elements
background-image: linear-gradient(direction, color %, color %, ...);
*
link
Box Model
6. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
width
Alpha
child
7. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
box-shadow
a img {border: none;}
-webkit-
<li>
8. h2+p { margin-top: .5em} is an example of a _____ selector
descendant
adjacent sibling
general sibling (new to CSS3)
screen
9. The colon (:) is indicative of __________
Pseudo-elements
ul{ list-style: none;}
pseudo-classes
child
10. Prefix for linear gradient commands in Firefox
HEX code
href="<relative URL here>"
pseudo-classes
-moz-
11. Prefix for linear gradient commands in Opera
em
-o-
position (with values: left, center, right, top, center, bottom)
border: [width] [style] [color];
12. Prefix for linear gradient commands in Safari & Chrome
16
!important
attribute
-webkit-
13. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
descendant
Box Model
height
Alpha
14. Linear gradient syntax
box-shadow
border: [width] [style] [color];
adjacent sibling
background-image: linear-gradient(direction, color %, color %, ...);
15. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
Firefox
zero out
a img {border: none;}
#F9A
16. Shorthand for background property
height
visited
background: [color] [image] [repeat] [attachment] [position];
specific
17. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
attribute
descendant
box-shadow
attribute
18. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
pseudo-classes
external
http://html5shiv.googlecode.com/svn/trunk/html5.js
pseudo-class
19. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
clickable
media
<style>
20. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
id
ul{ list-style: none;}
external
21. List alignments work best with ____ measurements
attribute
em
specific
comma (,)
22. These 'flavors' of selectors are often used by JavaScript
pseudo-classes
attribute selectors
id
http://html5shiv.googlecode.com/svn/trunk/html5.js
23. Two new box model properties in CSS3: border-radius and ________
specificity
attribute selectors
box-shadow
*
24. CSS is a special language used just for _____
class
#F9A
a img {border: none;}
formatting
25. #main li { color: green;} is an example of a _____ selector
descendant
background-image: linear-gradient(direction, color %, color %, ...);
class (.)
comma (,)
26. h1, h2, h3 {color: blue;} is an example of _____
block
multiple selectors
-o-
!important
27. The 'external' space or 'force field' between an element & it's containing element
href="<relative URL here>"
#F9A
margin
media
28. _______ are predefined classes that apply to specific conditions
Pseudo-classes
Lightness
-o-
descendant
29. border shorthand syntax
-o-
border: [width] [style] [color];
position (with values: left, center, right, top, center, bottom)
last
30. What does this do? padding: 2px, 4px, 6px, 8px;
box-shadow
Nothing! the values are not comma separated (delimited)
min-width
background: [color] [image] [repeat] [attachment] [position];
31. The ______ keyword is typically used for centering an element in it's containing (parent) block - but to do that you must also specify the width of the element
width
block
RGBA
zero out
32. HSLA: Hue - Saturation - Lightness - _____
Alpha
screen
position (with values: left, center, right, top, center, bottom)
-moz-
33. _____ measurements are recommended for font sizes
16
Chrome & Safari
ul{ list-style: none;}
Relative
34. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
Box Model
href="<relative URL here>"
embedded styles
collapsed
35. A rule to remove bullets from a list
ul{ list-style: none;}
RGBA
pseudo-class
descendant
36. There are ____ descriptive color names
<li>
specific
position (with values: left, center, right, top, center, bottom)
16
37. h2~p { margin-left: 2em; } is an example of a ______ selector
margin
specific
general sibling (new to CSS3)
ul{ list-style: none;}
38. The delimiter symbol for multiple selectors for the same rule set
comma (,)
width
Lightness
ul{ list-style: none;}
39. Attribute specifying the location of an external style sheet
href="<relative URL here>"
zero out
link
16
40. Three common CSS3 pseudo-classes: first-child - last-child - _______
only-child
RGBA
specific
last
41. #main>p{ font-size: 11pt; } is an example of a ______ selector
attribute
child
RGBA
adjacent sibling
42. 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
43. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
class (.)
collapsed
Relative
<style>
44. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
user style sheet
comma (,)
Chrome & Safari
45. The 'internal' space between content area & border
padding
attribute selectors
multiple selectors
descendant
46. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
<style>
pseudo-class
Lightness
Pseudo-elements
47. ________ are selectors that let you select a portion of text
Pseudo-elements
width
child
attribute selectors
48. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
padding
collapsed
clickable
width
49. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
descendant
clickable
min-width
type
50. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
attribute selectors
media
background-image: linear-gradient(direction, color %, color %, ...);
16