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. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
user style sheet
background-image: linear-gradient(direction, color %, color %, ...);
Pseudo-classes
16
2. .right {text-align: right;} is an example of a selector made by _______
descendant
multiple selectors
class
box-shadow
3. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
type
position (with values: left, center, right, top, center, bottom)
class
pseudo-class
4. The p.highlight selector is more _____ than the .highlight selector
screen
attribute selectors
<li>
specific
5. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
reset
only-child
attribute
<li>
6. Three ways to specify colors in traditional CSS:color name - RGB - _______
a img {border: none;}
Pseudo-classes
HEX code
last
7. Rule to remove underlining in a hyperlink that hasn't yet been visited
attribute
attribute
a:link{text-decoration: none;}
block
8. Shortcut HEX code for #FF99AA
Pseudo-elements
first-letter
#F9A
padding
9. 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
border: [width] [style] [color];
pseudo-classes
descendant
clickable
10. A rule to remove bullets from a list
clickable
Box Model
ul{ list-style: none;}
Pseudo-elements
11. 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
id
multiple selectors
width
attachment (with values of 'scroll' or 'fixed')
12. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
type
attribute selectors
specificity
-webkit-
13. Two new box model properties in CSS3: border-radius and ________
box-shadow
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
width
pseudo-class
14. HTML5 structural tags in older browsers must be styled as _____ elements
block
href="<relative URL here>"
media
clickable
15. 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
Nothing! the values are not comma separated (delimited)
16
general sibling (new to CSS3)
unordered (<ul>)
16. [ ] are indicative of _______ selectors
attribute
descendant
-moz-
position (with values: left, center, right, top, center, bottom)
17. The 'external' space or 'force field' between an element & it's containing element
box-shadow
Pseudo-classes
Box Model
margin
18. h1, h2, h3 {color: blue;} is an example of _____
em
class
multiple selectors
attachment (with values of 'scroll' or 'fixed')
19. Tag used to bring CSS into a web page from an external source
background-image: linear-gradient(direction, color %, color %, ...);
link
pseudo-class
specificity
20. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
border: [width] [style] [color];
box-shadow
child
Firefox
21. Three ways to code CSS3 colors: _____ - HSL - HSLA
<style>
RGBA
external
Lightness
22. Wildcard (universal selector) to select all elements
Chrome & Safari
a:link{text-decoration: none;}
*
-webkit-
23. These 'flavors' of selectors are often used by JavaScript
attribute selectors
16
href="<relative URL here>"
embedded styles
24. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
Lightness
media
16
attribute selectors
25. Sequence in which styles are applied: _______ - embedded - inline
id
external
padding
screen
26. CSS is a special language used just for _____
min-width
child
formatting
external
27. The default width of an element:As wide as the ______ that contains it
block
background-image: linear-gradient(direction, color %, color %, ...);
-webkit-
clickable
28. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
background-image: linear-gradient(direction, color %, color %, ...);
HEX code
pseudo-class
background: [color] [image] [repeat] [attachment] [position];
29. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
30. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
adjacent sibling
only-child
width
31. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
em
position (with values: left, center, right, top, center, bottom)
attribute
32. There are ____ descriptive color names
comma (,)
-webkit-
class (.)
16
33. Prefix for linear gradient commands in Firefox
general sibling (new to CSS3)
block
-moz-
attribute
34. Rules with a higher _____ are the ones that will be used
formatting
descendant
attribute selectors
specificity
35. A rule to remove a hyperlink border from around an image hyperlink
a img {border: none;}
link
box-shadow
<li>
36. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
unordered (<ul>)
a:link{text-decoration: none;}
!important
embedded styles
37. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
specificity
-moz-
collapsed
descendant
38. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
comma (,)
margin
collapsed
Pseudo-elements
39. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
child
Box Model
box-shadow
border: [width] [style] [color];
40. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
class (.)
RGBA
Lightness
external
41. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
padding
Box Model
<li>
Relative
42. Prefix for linear gradient commands in Safari & Chrome
formatting
clickable
-webkit-
Relative
43. border shorthand syntax
border: [width] [style] [color];
box-shadow
Nothing! the values are not comma separated (delimited)
adjacent sibling
44. Keyword with 'background' that specifies if and how an image repeats
pseudo-classes
!important
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
specific
45. 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 ______
type
Nothing! the values are not comma separated (delimited)
:focus pseudo-class
multiple selectors
46. Shorthand for background property
box-shadow
RGBA
background: [color] [image] [repeat] [attachment] [position];
position (with values: left, center, right, top, center, bottom)
47. To mark a rule so that it will override any other rules
class (.)
border: [width] [style] [color];
type
!important
48. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
class (.)
:focus pseudo-class
block
http://html5shiv.googlecode.com/svn/trunk/html5.js
49. The 'internal' space between content area & border
padding
attribute selectors
16
comma (,)
50. #main>p{ font-size: 11pt; } is an example of a ______ selector
child
specificity
block
margin