Introduction CSS MCQ
Introduction CSS MCQ
a) style
b) css
c) stylesheet
d) Both A. and B.
A. <style>…</style>
B. <css>…</css>
C. <stylesheet>…</stylesheet>
D. Both A. and B.
a) Link tag
b) Inline styles
c) Script tag
d) @media
a) bgcolor
b) bg-color
c) background
d) background-color
5. From the given options which is/are the valid way to represent a color?
6. Which is the correct inline CSS for p tag to define paragraph's text and
background colors?
1
7. What is the correct syntax of border property in CSS?
a) a {text-decoration : underline;}
b) a {text-decoration : none;}
c) a {text-decoration : block;}
d) None of the above
10. Which CSS property is used to style the hyperlinks on hover (Mouse over)?
a) a:mouseover
b) a:move
c) a:mover
d) a:hover
11. If you want to use a green dotted border around an image, which CSS
property is used for that?
a) border-style
b) border-color
c) border-decoration
d) Both A. and B.
a) text-align:center
b) align:center
c) text-align:middle
d) align:middle
2
13. What are the valid values of text-align property?
15. Which CSS property is used to specify the indentation of the first line of a
text?
a) text-align
b) padding-left
c) margin-left
d) text-indent
16. Which CSS property is used to specify the space between the characters in a
text?
a) text-space
b) letter-space
c) letter-spacing
d) letter-distance
17. Which CSS property is used to specify the space between lines?
a) line-space
b) line-spacing
c) line-padding
d) line-height
18. Which CSS property is used to specify the space between the words in a
text?
a) word-spacing
b) word-padding
c) word-height
d) characters-spacing
3
19. Which CSS property adds shadow to text?
a) content-shadow
b) text-shadow
c) word-shadow
d) text-outline
20. Which CSS property is used to specify uppercase and lowercase letters in a
text?
a) text-transform
b) text-case
c) case
d) text-casing
21. Which is the correct CSS statement to capitalize the first letter of each word?
a) text-transform: uppercase
b) text-transform: capitalize
c) text-transform: sentence
d) Both A. and B.
23. Which CSS property specifies how to align the last line of a text?
a) text-align
b) last-text-align
c) text-align-last-line
d) text-align-last
a) vertical-align
b) vertical-text-align
c) text-valign
d) vertical-align-text
25. Which CSS property specifies the type of list item marker?
a) list-style
b) list-style-type
c) list-style-circle
d) list-style-square
4
26. Which CSS property specifies an image as the list item marker?
a) list-style-image
b) list-style-picture
c) list-style-background
d) list-style-bgimage
a) block
b) display
c) element-display
d) element-block
Answers:-
1-a
2-a
3-a
4-d
5-d
6-d
7-a
8-b
9-c
10-d
11-d
12-a
13-c
14-a
15-d
16-c
17-d
18-a
19-b
20-a
21-b
22-a
23-d
24-a
25-b
26-a
27-b
5
6