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