You Scored:
Ranking:
Cascading Style Sheet CSS Solved Questions Answers
1. A navigation bar needs standard HTML as a base?
True (Answer)
False
2. Which of the following property of a table element controls the placement of the table caption?
Border-spacing
Empty-cells
Border-collapse
Caption-side (Answer)
3. Which of the following property is used to set the background color of an element?
Background-image
Background-color (Answer)
Background-repeat
Background-position
4. Which of the following property specifies the top margin of an element?
Margin-bottom
Margin-left
Margin
Margin-top (Answer)
5. Block elements can be aligned by setting the left and right margins to “align”?
False (Answer)
True
6. Which of the following property is used to set the opacity of an image?
Moz-opacity (Answer)
Height
Border
Width
7. Which of the following selector selects all paragraph elements whose lang attribute contains values that are exactly "fr", or begin with "fr-"?
p[lang]
p[lang~="fr"]
p[lang="fr"]
p[lang|="fr"] (Answer)
8. Which of the following is a component of CSS style rule?
All of the above (Answer)
Selector
Property
Value
9. Which of the following property changes the style of bottom border?
Border-top-style
Border-bottom-style (Answer)
Border-right-style
Border-left-style
10. What is CSS Float?
element can be pushed to any direction
allows other element to wrap around an element
element can be pushed to the left to right
both a and b above (Answer)
11. Which of the following property specifies the bottom padding of an element?
Padding-right
Padding-bottom (Answer)
Padding-left
Padding-top
12. Which of the below is the (Answer) way to set a background image?
body {background-image:url(‘paper.gif’);} (Answer)
body {background-image:url(‘paper.gif’)}
body {background-image:url(paper.gif);}
body {background-image:url(‘paper.gif’)};