Q1.
Which of the following CSS selector is used to specify a rule
to bind a particular unique element?
A. tag
B. id
C. class
D. both class and tag
Q2. Which of the following type of HTML tag is used to define an
internal style sheet?
A. <script>
B. <link>
C. <class>
D. <style>
Q3. Which of the following CSS property is used to make the text
bold?
A. text-decoration: bold
B. font-weight: bold
C. font-style: bold
D. text-align: bold
Q4. What will be the output of following CSS code snippet?
h1 {color: "green";}
A. nothings happen
B. error occurs
C. heading becomes dark-green
D. heading becomes green
Q5. Which of the following CSS style property is used to specify
an italic text?
A. style
B. font
C. font-style
D. @font-face
Q6. What will be the output of following CSS code snippet?
h1 {color: red text-decoration: underline; font-style: italic;}
A. color: red, text-decoration: underline works
B. only font-style: italic works
C. color: red, text-decoration: underline and font-style: italic all
works
D. text-decoration: underline and font-style: italic works
Q7. Which of the following are the CSS Extension Prefixes for
Webkit?
A. -chrome
B. -web
C. -o-
D. -webkit
Q8. Which of the following is the correct syntax to link an external
style sheet in the HTML file?
A. <link rel=”stylesheet” href=”[Link]” />
B. <link rel=”stylesheet” src=”[Link]” />
C. <style rel=”stylesheet” src=”[Link]” />
D. <style rel=”stylesheet” link=”[Link]” />
Q9. Which of the following is the first CSS specification to
become an official W3C Recommendation?
A. CSS level 2
B. (X)HTML CSS
C. CSS level 1
D. CSS level 2.1
Q10. Which of the following function defines a linear gradient as a
CSS image?
A. gradient()
B. linear-gradient()
C. grayscale()
D. image()
Q11. Which of the following CSS property can be used to set the
image as a border instead of the border style?
A. background-image-source
B. background-image
C. border-image-source
D. border-image
Q12. Which of the following CSS property defines the different
properties of all four sides of an element’s border in a single
declaration?
A. border-collapse
B. border-width
C. padding
D. border
Q13. Which of the following is the correct way to apply CSS
Styles?
A. in an external CSS file
B. inside an HTML element
C. inside the <head> section of an HTML page
D. all of the mentioned
Q14. Which of the following CSS property sets the font size of
text?
A. font-size
B. text-size
C. text
D. size
Q15. Which of the following is not the property of the CSS box
model?
A. margin
B. color
C. width
D. height
Q16. Which of the following CSS property sets what kind of line
decorations are added to an element, such as underlines, overlines,
etc.?
A. text-decoration
B. text-style
C. text-decoration-line
D. text-line
Q17. Which of the following CSS property specifies the look and
design of an outline?
A. outline-style
B. outline-format
C. outline-font
D. none of the mentioned
Q18. What will be the output of the following CSS code snippet?
span {
border: 1px solid red;
outline: green dotted thick;
}
A. All span elements will have a green thick border and a red
outline
B. All span elements will have a red border and a green dotted
outline
C. All span elements will have a outer green dotted border and an
inner red border
D. All span elements will have an outer red border and inner green
dotted border
Q19. Which of the following CSS property sets the shadow for a
box element?
A. set-shadow
B. box-shadow
C. shadow
D. canvas-shadow
Q20. Which of the following CSS property is used to set the color
of the text?
A. text-decoration
B. pallet
C. colour
D. color
Q21. Which of the following CSS Property controls how an
element is positioned?
A. static
B. position
C. fix
D. set
Q22. Which of the following CSS selector selects the elements that
are checked?
A. :checked
B. E ~ F
C. ::after
D. none of the mentioned
Q23. Which of the following is an appropriate value for the
overflow element?
A. scroll
B. hidden
C. auto
D. all of the mentioned
Ans:
1. B
2. D
3. B
4. A
5. C
6. B
7. D
8. A
9. C
10. B
11. C
12. B
13. D
14. A
15. B
16. C
17. A
18. C
19. B
20. D
21. B
22. A
23. D