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