Olete.in
Articles
Mock Tests
🧪 CSS MCQ Quiz Hub
CSS MCQ Questions
Choose a topic to test your knowledge and improve your CSS skills
1. CSS stands for __________
Color Style Sheets
Cascade Sheets Style
Cascade Style Sheet
Cascading Style Sheets
2. In CSS h1 can be called as _______
Selector
Attribute
Value
Tag
3. In css �color:red� can be called as _____________
Selector
Rule
Declaration
Value
4. Which of the following attributes is used to specify elements to bind style rules to?
id
class
tag
all of the mentioned
5. Which selector is used to specify a rule to bind a particular unique element? id
id
class
tag
both class and tag
6. In CSS �font-size� can be called as ________
Selector
Rule
Property
Property-Name
7. _________ selectors are used to specify a group of elements.
id
class
tag
both class and tag
8. Which of the following tag is used to embed css in html page?
<script>
<style>
<css>
<!DOCTYPE html>
9. ________ has introduced text list box margin border color and background properties.
css
html
ajax
php
10. Which of the following represents a comment?
/!� comments �!/
/! comments !/
/* comments */
None of the mentioned
11. A single _____________ rule can be used in an external sheet to define character set encoding of the style rules and values.
@media
@charset
@font-face
None of the mentioned
12. An ___________ rule can be used to define style rules for multiple media types in a single embedded style sheet
@media
@charset
@font-face
None of the mentioned
13. An ___________ rule is used to define a page block for printed styles.
@important
@page
@css
@html
14. Which of the following construct specifies that a style takes precedence over any different conflicting styles?
!important
<style>
#id
@media
15. Which of the following property specifies the size of the mask?
box-sizing
box-shadow
box-reflect
none of the mentioned
16. Which of the following property defines the gap between columns in a multicolumn text flow?
column-float
column-flow
column-gap
column-width
17. Which of the following property defines the style width and color of the rule divider between columns in a multicolumn text flow?
column
column-rule
column-change
column-check
18. Which of the following property defines the width of a rule between columns in a multicolumn text flow?
column-width
column-rule
column-float
column-rule-width
19. Which of the following property is used to control column element breaks after an associated element when flowing multicolumn text?
column-break
column-break-after
column-count
column-break-before
20. Which of the following property specifies whether an element is an accelerator indicator or not.
move
@keyframes
accelerator
none of the mentioned
21. Which of the following property is used to define the animations that should be run?
animation-delay
animation-iteration-count
animation-duration
animation-name
22. Which of the following property is used to define the number of times an animation should play? 4.
animation-direction
animation-iteration-count
animation
animation-timing-function
23. Which of the following property is used to indicate whether the backside of an element is visible if the element is rotated to display the back?
background-clip
backface-visibility
behavior
background-origin
24. Which of the following property defines a relationship between bound elements(s) and some code or content?
behavior
anim
binding
none of the mentioned
25. Which of the following property defines the width of each column in a multicolumn text flow?
width
columns
filter
column-width
26. Which of the following property is used to apply visual effects to associated elements?
filter
effect
adjust
none of the mentioned
27. Which of the following property defines the resampling method to use when stretching images?
layout
ime-mode
image-rendering
none of the mentioned
28. Which of the following property specifies the direction in which a marquee should move?
marquee
marquee-play
marquee-direction
none of the mentioned
29. Which of the following property defines a mask to be used as a box�s overlay in order to clip the box to a complex shape?
shadder
mask
mask-attachment
mask-image
30. Which of the following element is used within the table element to define a caption?
<tablecaption>
<caption>
<table-cap>
<table-caption>
31. Which of the following property is used to specify table borders in CSS?
table
border
table:border
none of the mentioned
32. Which of the following property sets whether the table borders are collapsed into a single border or separated:?
border
border-collapse
collapse
table-border
33. Which of the following property is used to change the width of table? 5.
width
table
table-width
resize
34. Which of the following property sets the vertical alignment?
align
vertical
vertical-align
vertical-alignment
35. Which of the following property is used to control the space between the border and content in a table?
border
margin
padding
resize
36. Which of the following property is used to change the background in a table?
table-background
background
color
none of the mentioned
37. Which of the following property is used to change the height of a table?
height
table-height
resize
position-y
38. Which of the following property is used to align the text in a table?
align
text
text-align
none of the mentioned
39. Which of the following property is used to set order in a table?
border
padding
dotted
text
40. Which of the following selector same as :after; changed under CSS3 to make pseudo-elements obvious?
::after
:after
#after
none of the mentioned
41. Which of the following property controls CSS counter values? 3.
counter-increment
counter-decrement
counter
none of the mentioned
42. Which of the following property contains a list of one or more counter names to be cleared or set to a particular value?
counter
counter-origin
counter-reset
none of the mentioned
43. Which of the following property is used in conjunction with the :before or :after pseudo-elements? 5.
text
generated-content
content
none of the mentioned
44. Which of the following property defines the text selection policy for various portions of a document?
user-origin
user-select
user
all of the mentioned
45. Which of the following CSS3 property can be used to allow line breaks within words?
word-wrap
word-break
line-wrap
line-break
46. Which of the following property can be used to set text flow appropriate for European alphabets or East Asian alphabets?
writing-mode
language-mode
text-mode
reading-mode
47. Which of the following property is used to zoom in or out on an element?
zoom
zoom-set
zoom-in
zoom-out
48. Which of the following property is used to describe all transition-related properties at once?
transition-set
transition-wrap
transition
animation
49. Which of the following property is used to define which properties a transition will be applied to?
transition
transition-property
transition-wrap
transition-style
50. Which of the following values are zccepted by the float Property?
left
right
none
all of the mentioned
51. Which of the following property is used to control the behavior of floating elements?
format
clean
clear
remove
52. In what direction does float will work?
left
top
bottom
right
53. Which of the following property allows elements to be offset rotated scaled and skewed in a variety of different ways?
transform-style
transform
transition
transform-origin
54. Which of the following property is used to define how nested items are rendered in a 3-D space the choice being either flattened or with their dimensions preserved?
transition-duration
transition-delay
transition
transform-style
55. Which of the following property is used to define the time it takes one iteration of an animation to play?
transition-property
transition-timing
transition-duration
user-select
56. Which of the following property sets the distance between an element�s right border and the rightmost edge of its content? 9.
auto
padding-left
padding-right
padding-top
57. Which of the following property is used to control page breaks when printing a document after the bound element box ends?
page-inside
page-break-after
page-break-inside
page-break-before
58. Which of the following property defines the style of quotation marks to be used with embedded quotations?
article
para
quote
quotes
59. Which of the following property defines the length of time that a transition takes?
transition
transition-duration
transform-duration
transition-property
60. Which of the following property defines when the transition will start and it allows a transition to begin execution some some period of time from when it is applied?
transform-delay
transition-delay
transform-duration
none of the mentioned
61. Which of the following transform property value defines a 2D translation?
translate(x y)
translate2d(x y)
translate3d(x y)
all of the mentioned
62. Which of the following transform property value defines a translation using only the value for the X-axis?
translate(x)
translateZ(x)
translateY(x)
translateX(x)
63. Which of the following transform property value defines a 3D scale transformation?
circle(x y z)
scale3d(x y z)
rotate3d(x y z angle)
rotate(angle)
64. 6. Which of the following transform property value defines a perspective view for a 3D transformed element?
perspective3d(n)
perspective(n n n)
perspective(n)
none of the mentioned
65. Which of the following transform property value defines a 2D skew transformation along the X- and the Y-axis?
skewX(angle)
skewY(angle)
skew(x-angle y-angle)
none of the mentioned
66. Which of the following transform property value defines a 3D transformation using a 4�4 matrix of 16 values?
matrix3d(n n n n n n n n n n n n n n n n)
matrix(n n n n n n n n n n n n n n n n)
matrix2d(n n n n n n n n n n n n n n n n)
all of the mentioned
67. Which of the following transform property value defines a 3D rotation along the Z-axis? rotateZ(angle) all of the mentioned
rotate-Z(angle)
rotate-Z-axis(angle)
rotateZ(angle)
all of the mentioned
68. Which of the following transform property value defines a 3D rotation?
rotate3d(x y z angle)
rotated(x y z angle)
rotate-all(x y z angle)
rotate(x y z angle)
Submit