Css MCQS: by Elrayek
Css MCQS: by Elrayek
CSS MCQS
1. What is CSS stands for?
5. In a CSS file, there is a CSS rule for paragraphs tags – what does p can be
called?
A. Selector
B. Attribute
C. Property
D. Tag
A. <style>…</style>
B. <css>…</css>
C. <stylesheet>…</stylesheet>
D. Both A. and B.
A. style
B. css
C. stylesheet
D. Both A. and B.
A. //
B. /* and */
C. <* and *>
D. <! And !>
A. Yes
B. No
A. text-color
B. color
C. font-color
D. Both A. and B.
A. bgcolor
B. bg-color
C. background
D. background-color
12. From the given options which is/are the valid way to represent a color?
13. Which property is used to define the font of the element's text?
A. font
B. font-family
C. font-style
D. All of the above
A. font
B. font-family
C. font-style
18. Which is the correct inline CSS for p tag to define paragraph's text and
background colors?
20. Which of the following is the correct syntax to display the hyperlinks
without any underline?
A. a {text-decoration : underline;}
B. a {text-decoration : none;}
C. a {text-decoration : block;}
D. None of the above
21. Which of the following is the correct syntax to remove the underline on
hyperlinks and visited hyperlinks?
22. 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
23. 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
27. 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
28. 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
29. Which CSS property is used to specify the space between lines?
A. line-space
B. line-spacing
C. line-padding
D. line-height
30. 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
A. content-shadow
BY ELRayeK
B. text-shadow
C. word-shadow
D. text-outline
32. 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
33. 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.
36. 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
BY ELRayeK
C. text-valign
D. vertical-align-text
39. Which is the correct CSS statement to define multiple font families?
40. 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
41. Which is the correct CSS statement is used to remove the markers/bullets?
A. list-style: none;
B. list-style-type: 0;
C. list-style-type: blank;
D. list-style-type: none;
42. 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
BY ELRayeK
44. Which CSS property specifies the type of positioning method used for an
element?
A. positions
B. text-position
C. positioning
D. position
A. static
B. fixed
C. relative
D. none
A. transparency
B. opacity
C. transform-opacity
D. opacity-all
48. Which CSS function performs a calculation to be used as the property value?
A. sum()
B. add()
C. calc()
D. addition()
A. large()
B. maximum()
C. max_value()
D. max()
A. small()
B. minimum()
C. min_value()
D. min()
A. One
B. Two
C. Three
D. Infinite
A. Attributes
B. HTML tags
C. Selector
D. All of the above
A. Yes
B. No
C. Can't say, it depends on CSS properties
D. None of the above
A. font-family
B. font-size
C. font
D. Both A and C
A. p
B. border
C. 2px
D. None of these
A. 140
B. 100
C. 75
D. 90
57. The ___ property is used in the positioning of the background image.
A. background-image
B. background-position
C. padding
D. All of the above
A. 4px
B. 4 pt.
C. 4em
D. 4vw
59. Amongst the following browsers, which browser supports almost all the CSS
properties?
A. Firefox
B. Safari
C. Google Chrome
D. Opera
A. 0023
B. 0026
C. 0027
D. None of the these
61. This selector selects all the <h> elements where the parent is a <div>
element.
A. h+p
B. h>p
C. p.h
D. p>h
A. :: marker
BY ELRayeK
B. .marker
C. ::selector
D. None of these
63. Which is the most widely used font in customizing web pages?
A. color
B. border-left
C. flex
D. All of the above
65. We can give space between unit and value when assigning length values to
CSS properties.
A. True
B. False
A. rem
B. px
C. vw
D. vh
67. Which line of code is a must to write to apply CSS Flexbox properties?
A. display: flex;
B. display: flexbox;
C. display: block;
D. flex-direction: row;
A. flex-start
B. flex-end
C. space-between
D. None
BY ELRayeK
70. Which line of code specifies playing an animation with the same speed from
beginning to the end?
72. Which of the following properties specify the width of the borders?
A. border-width
B. border-style
C. border
D. Both A and C
A. Yes
B. No
74. What value is set to border: collapse property to define borders around
each cell? (Refer to the image)
BY ELRayeK
A. collapse
B. separate
C. initial
D. inherit
75. Which cursor property value indicates that the program is busy?
A. help
B. default
C. auto
D. wait
p {display: flex;}
77. The text-align property defines the ___ alignment of text in an element.
A. horizontal
B. vertical
C. both horizontal & vertical
D. None of these
A. Yes
BY ELRayeK
B. No
A. text-indent
B. scroll- behavior
C. overflow
D. viewport
A. HTML files
B. CSS files
C. Folder
D. None of these
82. In the given line of code, identify the type of selector used.
A. #FF0000
B. #F0F000
C. #F0000F
D. None of these
85. Among the following CSS properties, which property is not a shorthand
property?
A. background
B. padding
C. display
D. border
86. In this line of code, what is the use of the alt attribute?
87. The CSS border property specifies the style, color, and ___ of an element's
border.
A. length
B. size
C. width
D. area
88. To get this output, the CSS properties put to use are ___.
90. What is the default size for normal text, like paragraphs?
A. 11px
B. 12px
C. 16px
D. 18px