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. The 'internal' space between content area & border
pseudo-classes
media
first-letter
padding
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
ul{ list-style: none;}
block
only-child
3. border shorthand syntax
border: [width] [style] [color];
zero out
first-letter
-moz-
4. A rule to remove a hyperlink border from around an image hyperlink
a img {border: none;}
RGBA
block
clickable
5. These 'flavors' of selectors are often used by JavaScript
link
<li>
pseudo-classes
attribute selectors
6. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
#F9A
Chrome & Safari
Box Model
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
7. There are ____ descriptive color names
Nothing! the values are not comma separated (delimited)
16
border: [width] [style] [color];
attribute selectors
8. Prefix for linear gradient commands in Safari & Chrome
block
collapsed
Lightness
-webkit-
9. What does this do? padding: 2px, 4px, 6px, 8px;
media
Nothing! the values are not comma separated (delimited)
descendant
#F9A
10. _____ measurements are recommended for font sizes
-webkit-
block
clickable
Relative
11. Three common CSS3 pseudo-classes: first-child - last-child - _______
Firefox
only-child
-webkit-
Chrome & Safari
12. Linear gradient syntax
specificity
a img {border: none;}
background-image: linear-gradient(direction, color %, color %, ...);
Pseudo-classes
13. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
Box Model
embedded styles
min-width
Relative
14. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
http://html5shiv.googlecode.com/svn/trunk/html5.js
box-shadow
descendant
15. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
HEX code
block
collapsed
Pseudo-classes
16. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
ul{ list-style: none;}
width
RGBA
17. To mark a rule so that it will override any other rules
general sibling (new to CSS3)
Nothing! the values are not comma separated (delimited)
Chrome & Safari
!important
18. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
visited
:focus pseudo-class
last
box-shadow
19. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
-moz-
Box Model
height
rel="stylesheet"
20. HSLA: Hue - Saturation - Lightness - _____
Pseudo-elements
Alpha
visited
Relative
21. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
position (with values: left, center, right, top, center, bottom)
Box Model
box-shadow
Firefox
22. Rules with a higher _____ are the ones that will be used
-moz-
formatting
:focus pseudo-class
specificity
23. #main>p{ font-size: 11pt; } is an example of a ______ selector
screen
ul{ list-style: none;}
child
16
24. HTML tag used for embedded styles
screen
child
<style>
a:link{text-decoration: none;}
25. Tag used to bring CSS into a web page from an external source
link
height
class
multiple selectors
26. 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
block
first-letter
unordered (<ul>)
-webkit-
27. HTML5 structural tags in older browsers must be styled as _____ elements
adjacent sibling
block
Lightness
<style>
28. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
screen
descendant
specific
min-width
29. Attribute for an external style sheet
pseudo-classes
rel="stylesheet"
http://html5shiv.googlecode.com/svn/trunk/html5.js
block
30. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
*
type
first-letter
box-shadow
31. Five common CSS pseudo classes:link - _______ - active - hover - focus
comma (,)
formatting
block
visited
32. The delimiter symbol for multiple selectors for the same rule set
16
comma (,)
block
block
33. .right {text-align: right;} is an example of a selector made by _______
multiple selectors
clickable
class
last
34. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
formatting
specific
pseudo-class
multiple selectors
35. Two common pseudo-elements: ______ - first-line
Nothing! the values are not comma separated (delimited)
general sibling (new to CSS3)
first-letter
Chrome & Safari
36. Three ways to code CSS3 colors: _____ - HSL - HSLA
RGBA
screen
Pseudo-classes
box-shadow
37. Rule to remove underlining in a hyperlink that hasn't yet been visited
Relative
a:link{text-decoration: none;}
external
id
38. #main { padding: 1em;} is an example of a selector made by _____
Pseudo-elements
background-image: linear-gradient(direction, color %, color %, ...);
HEX code
id
39. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
-moz-
width
ul{ list-style: none;}
user style sheet
40. 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
41. CSS is a special language used just for _____
Box Model
formatting
background-image: linear-gradient(direction, color %, color %, ...);
attribute
42. [ ] are indicative of _______ selectors
margin
Chrome & Safari
attribute
#F9A
43. h2+p { margin-top: .5em} is an example of a _____ selector
screen
pseudo-class
-o-
adjacent sibling
44. Two new box model properties in CSS3: border-radius and ________
width
pseudo-classes
box-shadow
Pseudo-elements
45. Shortcut HEX code for #FF99AA
#F9A
link
-moz-
Chrome & Safari
46. The colon (:) is indicative of __________
border: [width] [style] [color];
-moz-
pseudo-classes
!important
47. Default for the media attribute
screen
position (with values: left, center, right, top, center, bottom)
reset
Lightness
48. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
Nothing! the values are not comma separated (delimited)
attribute
Alpha
attribute
49. Sequence in which styles are applied: _______ - embedded - inline
external
Lightness
comma (,)
border: [width] [style] [color];
50. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
margin
-webkit-
class (.)
<li>