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)
unordered (<ul>)
descendant
embedded styles
general sibling (new to CSS3)
2. HTML5 structural tags in older browsers must be styled as _____ elements
Firefox
adjacent sibling
block
#F9A
3. The delimiter symbol for multiple selectors for the same rule set
comma (,)
Lightness
pseudo-classes
block
4. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
last
attribute selectors
pseudo-class
5. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
first-letter
-webkit-
Chrome & Safari
position (with values: left, center, right, top, center, bottom)
6. The colon (:) is indicative of __________
pseudo-classes
id
block
embedded styles
7. Sequence in which styles are applied: _______ - embedded - inline
a:link{text-decoration: none;}
-moz-
external
type
8. HTML tag used for embedded styles
Firefox
only-child
<style>
padding
9. #main { padding: 1em;} is an example of a selector made by _____
comma (,)
padding
id
Relative
10. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
border: [width] [style] [color];
pseudo-class
<li>
16
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
width
attribute
16
specific
12. 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
*
Chrome & Safari
unordered (<ul>)
adjacent sibling
13. Three ways to specify colors in traditional CSS:color name - RGB - _______
collapsed
margin
Nothing! the values are not comma separated (delimited)
HEX code
14. Rules with a higher _____ are the ones that will be used
class (.)
background-image: linear-gradient(direction, color %, color %, ...);
height
specificity
15. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
collapsed
Lightness
pseudo-class
#F9A
16. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
http://html5shiv.googlecode.com/svn/trunk/html5.js
ul{ list-style: none;}
type
multiple selectors
17. Tag used to bring CSS into a web page from an external source
ul{ list-style: none;}
specificity
link
last
18. #main>p{ font-size: 11pt; } is an example of a ______ selector
RGBA
attribute selectors
child
width
19. The default width of an element:As wide as the ______ that contains it
block
a img {border: none;}
href="<relative URL here>"
class
20. Attribute for an external style sheet
screen
multiple selectors
http://html5shiv.googlecode.com/svn/trunk/html5.js
rel="stylesheet"
21. Three common CSS3 pseudo-classes: first-child - last-child - _______
only-child
specific
margin
box-shadow
22. The 'internal' space between content area & border
embedded styles
box-shadow
box-shadow
padding
23. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
collapsed
Chrome & Safari
background-image: linear-gradient(direction, color %, color %, ...);
media
24. A rule to remove bullets from a list
block
attribute
collapsed
ul{ list-style: none;}
25. Shortcut HEX code for #FF99AA
specificity
last
#F9A
descendant
26. Prefix for linear gradient commands in Firefox
id
first-letter
<style>
-moz-
27. Linear gradient syntax
specificity
background-image: linear-gradient(direction, color %, color %, ...);
-o-
:focus pseudo-class
28. 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
min-width
media
clickable
class
29. Shorthand for background property
background: [color] [image] [repeat] [attachment] [position];
first-letter
border: [width] [style] [color];
screen
30. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
external
Firefox
a img {border: none;}
descendant
31. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
id
Firefox
#F9A
Alpha
32. Attribute specifying the location of an external style sheet
id
block
href="<relative URL here>"
16
33. Two new box model properties in CSS3: border-radius and ________
Lightness
width
box-shadow
Box Model
34. _____ measurements are recommended for font sizes
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
height
Relative
collapsed
35. _______ are predefined classes that apply to specific conditions
-webkit-
Firefox
Pseudo-classes
-o-
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
last
attachment (with values of 'scroll' or 'fixed')
pseudo-class
collapsed
37. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
HEX code
height
box-shadow
attachment (with values of 'scroll' or 'fixed')
38. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
box-shadow
class (.)
block
media
39. 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 ______
attribute
adjacent sibling
user style sheet
:focus pseudo-class
40. Five common CSS pseudo classes:link - _______ - active - hover - focus
specific
visited
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
media
41. Default for the media attribute
pseudo-classes
screen
only-child
collapsed
42. Shorthand border syntax
border: [width] [style] [color];
#F9A
width
-o-
43. 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
zero out
-webkit-
Pseudo-classes
width
44. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Box Model
Alpha
zero out
!important
45. There are ____ descriptive color names
!important
RGBA
embedded styles
16
46. The 'external' space or 'force field' between an element & it's containing element
visited
Lightness
margin
attribute
47. [ ] are indicative of _______ selectors
http://html5shiv.googlecode.com/svn/trunk/html5.js
Pseudo-classes
-o-
attribute
48. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
<style>
user style sheet
multiple selectors
type
49. Prefix for linear gradient commands in Safari & Chrome
block
-webkit-
-o-
rel="stylesheet"
50. Wildcard (universal selector) to select all elements
Relative
specificity
*
-o-