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. h2+p { margin-top: .5em} is an example of a _____ selector
<style>
adjacent sibling
attribute
-webkit-
2. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
min-width
reset
clickable
Pseudo-elements
3. Three common CSS3 pseudo-classes: first-child - last-child - _______
external
only-child
user style sheet
Chrome & Safari
4. .right {text-align: right;} is an example of a selector made by _______
box-shadow
Relative
general sibling (new to CSS3)
class
5. h2~p { margin-left: 2em; } is an example of a ______ selector
Chrome & Safari
Pseudo-elements
!important
general sibling (new to CSS3)
6. Attribute specifying the location of an external style sheet
only-child
href="<relative URL here>"
specific
em
7. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
background: [color] [image] [repeat] [attachment] [position];
pseudo-class
child
last
8. Default for the media attribute
block
screen
class
http://html5shiv.googlecode.com/svn/trunk/html5.js
9. HTML5 structural tags in older browsers must be styled as _____ elements
first-letter
box-shadow
only-child
block
10. 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
clickable
ul{ list-style: none;}
general sibling (new to CSS3)
adjacent sibling
11. CSS is a special language used just for _____
media
href="<relative URL here>"
Pseudo-elements
formatting
12. _______ are predefined classes that apply to specific conditions
id
#F9A
Pseudo-classes
rel="stylesheet"
13. The delimiter symbol for multiple selectors for the same rule set
type
child
formatting
comma (,)
14. Prefix for linear gradient commands in Safari & Chrome
-webkit-
RGBA
box-shadow
pseudo-classes
15. Prefix for linear gradient commands in Firefox
reset
-moz-
Box Model
16
16. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
Relative
http://html5shiv.googlecode.com/svn/trunk/html5.js
width
16
17. The default width of an element:As wide as the ______ that contains it
<li>
box-shadow
block
pseudo-classes
18. 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
19. List alignments work best with ____ measurements
em
zero out
min-width
:focus pseudo-class
20. Shorthand for background property
background: [color] [image] [repeat] [attachment] [position];
id
rel="stylesheet"
-moz-
21. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
box-shadow
specific
Firefox
Chrome & Safari
22. 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
Pseudo-elements
specific
-o-
last
23. h1, h2, h3 {color: blue;} is an example of _____
visited
last
zero out
multiple selectors
24. HSL: Hue - Saturation - ______
em
Lightness
embedded styles
first-letter
25. HTML tag used for embedded styles
margin
specificity
<style>
specific
26. Three ways to code CSS3 colors: _____ - HSL - HSLA
background-image: linear-gradient(direction, color %, color %, ...);
block
zero out
RGBA
27. #main { padding: 1em;} is an example of a selector made by _____
id
type
child
height
28. 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
padding
zero out
Chrome & Safari
min-width
29. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
-webkit-
unordered (<ul>)
reset
attribute
30. 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
reset
unordered (<ul>)
media
<li>
31. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
box-shadow
link
comma (,)
32. The p.highlight selector is more _____ than the .highlight selector
http://html5shiv.googlecode.com/svn/trunk/html5.js
Chrome & Safari
width
specific
33. border shorthand syntax
16
border: [width] [style] [color];
position (with values: left, center, right, top, center, bottom)
block
34. Two common pseudo-elements: ______ - first-line
media
Pseudo-elements
descendant
first-letter
35. Two new box model properties in CSS3: border-radius and ________
screen
box-shadow
:focus pseudo-class
Pseudo-elements
36. Shortcut HEX code for #FF99AA
width
background: [color] [image] [repeat] [attachment] [position];
multiple selectors
#F9A
37. Rules with a higher _____ are the ones that will be used
pseudo-classes
specificity
attribute
visited
38. The 'internal' space between content area & border
ul{ list-style: none;}
visited
padding
embedded styles
39. 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
Relative
clickable
width
pseudo-classes
40. There are ____ descriptive color names
16
attachment (with values of 'scroll' or 'fixed')
-webkit-
min-width
41. Rule to remove underlining in a hyperlink that hasn't yet been visited
a img {border: none;}
screen
attribute selectors
a:link{text-decoration: none;}
42. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
last
Chrome & Safari
embedded styles
media
43. The 'external' space or 'force field' between an element & it's containing element
margin
background: [color] [image] [repeat] [attachment] [position];
media
class
44. HSLA: Hue - Saturation - Lightness - _____
pseudo-classes
general sibling (new to CSS3)
a:link{text-decoration: none;}
Alpha
45. 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
<li>
general sibling (new to CSS3)
<style>
46. Three ways to specify colors in traditional CSS:color name - RGB - _______
width
href="<relative URL here>"
block
HEX code
47. These 'flavors' of selectors are often used by JavaScript
first-letter
attribute selectors
#F9A
background: [color] [image] [repeat] [attachment] [position];
48. Prefix for linear gradient commands in Opera
specificity
HEX code
-o-
attribute selectors
49. Backwards compatibility for __________ & shadows -webkit-box-shadow
pseudo-classes
comma (,)
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Chrome & Safari
50. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
attribute
<li>
visited
height