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. HSLA: Hue - Saturation - Lightness - _____
#F9A
adjacent sibling
Alpha
class (.)
2. Sequence in which styles are applied: _______ - embedded - inline
specificity
external
Firefox
*
3. Linear gradient syntax
external
border: [width] [style] [color];
multiple selectors
background-image: linear-gradient(direction, color %, color %, ...);
4. Backwards compatibility for __________ & shadows -webkit-box-shadow
attribute
Chrome & Safari
margin
<li>
5. To mark a rule so that it will override any other rules
!important
external
em
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
6. _______ are predefined classes that apply to specific conditions
class
Pseudo-classes
-o-
Box Model
7. Prefix for linear gradient commands in Safari & Chrome
-moz-
embedded styles
-webkit-
a:link{text-decoration: none;}
8. Prefix for linear gradient commands in Opera
background-image: linear-gradient(direction, color %, color %, ...);
-o-
box-shadow
collapsed
9. 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
unordered (<ul>)
clickable
*
collapsed
10. Attribute specifying the location of an external style sheet
href="<relative URL here>"
class
Pseudo-elements
formatting
11. Five common CSS pseudo classes:link - _______ - active - hover - focus
only-child
unordered (<ul>)
visited
a img {border: none;}
12. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
height
!important
HEX code
user style sheet
13. Three ways to code CSS3 colors: _____ - HSL - HSLA
ul{ list-style: none;}
box-shadow
RGBA
descendant
14. 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
15. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
adjacent sibling
<style>
comma (,)
<li>
16. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
HEX code
min-width
reset
-moz-
17. #main { padding: 1em;} is an example of a selector made by _____
id
multiple selectors
embedded styles
only-child
18. #main>p{ font-size: 11pt; } is an example of a ______ selector
child
attribute selectors
media
http://html5shiv.googlecode.com/svn/trunk/html5.js
19. 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
general sibling (new to CSS3)
href="<relative URL here>"
zero out
unordered (<ul>)
20. Default for the media attribute
box-shadow
screen
-o-
http://html5shiv.googlecode.com/svn/trunk/html5.js
21. CSS is a special language used just for _____
*
http://html5shiv.googlecode.com/svn/trunk/html5.js
min-width
formatting
22. h2~p { margin-left: 2em; } is an example of a ______ selector
general sibling (new to CSS3)
Box Model
16
last
23. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
<style>
media
position (with values: left, center, right, top, center, bottom)
multiple selectors
24. Rules with a higher _____ are the ones that will be used
multiple selectors
clickable
specificity
box-shadow
25. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
comma (,)
margin
media
child
26. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
type
height
collapsed
zero out
27. Prefix for linear gradient commands in Firefox
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
only-child
background: [color] [image] [repeat] [attachment] [position];
-moz-
28. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
Nothing! the values are not comma separated (delimited)
type
border: [width] [style] [color];
class (.)
29. HSL: Hue - Saturation - ______
Lightness
<style>
pseudo-classes
collapsed
30. Shorthand border syntax
first-letter
width
border: [width] [style] [color];
Nothing! the values are not comma separated (delimited)
31. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
formatting
embedded styles
zero out
type
32. Keyword with 'background' that specifies if and how an image repeats
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
RGBA
first-letter
type
33. The default width of an element:As wide as the ______ that contains it
block
-o-
general sibling (new to CSS3)
descendant
34. _____ measurements are recommended for font sizes
<style>
screen
background-image: linear-gradient(direction, color %, color %, ...);
Relative
35. In a navigation list (vertical): To make the entire box for a link ____ you can set the display property for the <a> elements to block and use padding to provide the space around the links
-moz-
border: [width] [style] [color];
user style sheet
clickable
36. The 'external' space or 'force field' between an element & it's containing element
type
-moz-
margin
*
37. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
specific
position (with values: left, center, right, top, center, bottom)
http://html5shiv.googlecode.com/svn/trunk/html5.js
Nothing! the values are not comma separated (delimited)
38. ________ are selectors that let you select a portion of text
min-width
Box Model
block
Pseudo-elements
39. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
general sibling (new to CSS3)
descendant
HEX code
block
40. #main li { color: green;} is an example of a _____ selector
descendant
class
specific
zero out
41. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
only-child
user style sheet
ul{ list-style: none;}
42. The colon (:) is indicative of __________
pseudo-classes
clickable
embedded styles
rel="stylesheet"
43. The delimiter symbol for multiple selectors for the same rule set
unordered (<ul>)
border: [width] [style] [color];
comma (,)
multiple selectors
44. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
background-image: linear-gradient(direction, color %, color %, ...);
external
user style sheet
Box Model
45. border shorthand syntax
external
rel="stylesheet"
padding
border: [width] [style] [color];
46. Two common pseudo-elements: ______ - first-line
pseudo-class
first-letter
block
only-child
47. 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
attribute
attribute
width
<li>
48. Three ways to specify colors in traditional CSS:color name - RGB - _______
href="<relative URL here>"
descendant
clickable
HEX code
49. h1, h2, h3 {color: blue;} is an example of _____
pseudo-class
type
multiple selectors
min-width
50. A rule to remove bullets from a list
http://html5shiv.googlecode.com/svn/trunk/html5.js
border: [width] [style] [color];
ul{ list-style: none;}
Lightness