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