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. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
external
position (with values: left, center, right, top, center, bottom)
a img {border: none;}
media
2. Prefix for linear gradient commands in Firefox
block
href="<relative URL here>"
a img {border: none;}
-moz-
3. Attribute specifying the location of an external style sheet
first-letter
specific
id
href="<relative URL here>"
4. [ ] are indicative of _______ selectors
Pseudo-classes
block
attribute
RGBA
5. HTML5 structural tags in older browsers must be styled as _____ elements
Alpha
a img {border: none;}
block
zero out
6. A rule to remove bullets from a list
box-shadow
ul{ list-style: none;}
last
Nothing! the values are not comma separated (delimited)
7. Sequence in which styles are applied: _______ - embedded - inline
Chrome & Safari
only-child
clickable
external
8. border shorthand syntax
class
border: [width] [style] [color];
Alpha
reset
9. 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
Relative
visited
media
10. ________ are selectors that let you select a portion of text
class (.)
Pseudo-elements
media
position (with values: left, center, right, top, center, bottom)
11. Backwards compatibility for __________ & shadows -webkit-box-shadow
external
Box Model
Chrome & Safari
-o-
12. Wildcard (universal selector) to select all elements
HEX code
formatting
*
background: [color] [image] [repeat] [attachment] [position];
13. HSL: Hue - Saturation - ______
position (with values: left, center, right, top, center, bottom)
Lightness
only-child
screen
14. HTML tag used for embedded styles
a img {border: none;}
<style>
http://html5shiv.googlecode.com/svn/trunk/html5.js
attribute
15. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
Box Model
specificity
reset
last
16. Two common pseudo-elements: ______ - first-line
attribute selectors
first-letter
media
<style>
17. Shorthand border syntax
#F9A
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
border: [width] [style] [color];
a img {border: none;}
18. List alignments work best with ____ measurements
em
attribute
background-image: linear-gradient(direction, color %, color %, ...);
general sibling (new to CSS3)
19. Prefix for linear gradient commands in Safari & Chrome
comma (,)
visited
external
-webkit-
20. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
21. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
http://html5shiv.googlecode.com/svn/trunk/html5.js
specific
Pseudo-elements
attribute
22. Default for the media attribute
descendant
-moz-
screen
box-shadow
23. #main li { color: green;} is an example of a _____ selector
formatting
visited
descendant
class (.)
24. Three ways to code CSS3 colors: _____ - HSL - HSLA
first-letter
RGBA
attachment (with values of 'scroll' or 'fixed')
border: [width] [style] [color];
25. Prefix for linear gradient commands in Opera
em
Chrome & Safari
-o-
last
26. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
position (with values: left, center, right, top, center, bottom)
pseudo-class
specific
<style>
27. A rule to remove a hyperlink border from around an image hyperlink
a img {border: none;}
block
comma (,)
visited
28. _____ measurements are recommended for font sizes
class
last
Relative
RGBA
29. .right {text-align: right;} is an example of a selector made by _______
class
box-shadow
-o-
only-child
30. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
multiple selectors
class (.)
height
only-child
31. Linear gradient syntax
class
-o-
background-image: linear-gradient(direction, color %, color %, ...);
Chrome & Safari
32. Three common CSS3 pseudo-classes: first-child - last-child - _______
background-image: linear-gradient(direction, color %, color %, ...);
em
zero out
only-child
33. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
Box Model
<li>
Chrome & Safari
visited
34. Two new box model properties in CSS3: border-radius and ________
class
box-shadow
attribute
reset
35. #main { padding: 1em;} is an example of a selector made by _____
:focus pseudo-class
attachment (with values of 'scroll' or 'fixed')
only-child
id
36. 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
width
margin
type
last
37. Three ways to specify colors in traditional CSS:color name - RGB - _______
attribute
HEX code
embedded styles
external
38. h2~p { margin-left: 2em; } is an example of a ______ selector
general sibling (new to CSS3)
width
Pseudo-elements
Chrome & Safari
39. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
type
descendant
margin
40. The 'internal' space between content area & border
href="<relative URL here>"
padding
class
background-image: linear-gradient(direction, color %, color %, ...);
41. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
embedded styles
Alpha
<style>
width
42. CSS is a special language used just for _____
HEX code
adjacent sibling
comma (,)
formatting
43. Tag used to bring CSS into a web page from an external source
!important
Lightness
rel="stylesheet"
link
44. _______ are predefined classes that apply to specific conditions
Pseudo-classes
a img {border: none;}
class
border: [width] [style] [color];
45. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
box-shadow
type
descendant
last
46. 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
a:link{text-decoration: none;}
specificity
Pseudo-classes
47. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
adjacent sibling
formatting
media
Relative
48. 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
descendant
*
clickable
width
49. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
Alpha
external
href="<relative URL here>"
50. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
only-child
<style>
id
height