Explore topic-wise MCQs in Css.

This section includes 188 Mcqs, each offering curated multiple-choice questions to sharpen your Css knowledge and support exam preparation. Choose a topic below to get started.

101.

_ Which of the following property controls how spaces, tabs, and newline characters are handled in an element?$?

A. space
B. display
C. widows
D. white-space
Answer» E.
102.

_ Which of the following CSS property defines whether the animation is running or paused?$?

A. animation-pause-state
B. animation-state
C. animation-play-state
D. all of the mentioned
Answer» D. all of the mentioned
103.

_ Which of the following property defines the length of time that a transition takes?$?

A. transition
B. transition-duration
C. transform-duration
D. transition-property
Answer» C. transform-duration
104.

_ Which of the following transform property value defines a perspective view for a 3D transformed element?$?

A. perspective3d(n)
B. perspective(n,n,n)
C. perspective(n)
D. none of the mentioned
Answer» C. perspective(n)
105.

_ Which of the following transform property value defines a 3D rotation?$?

A. rotate3d(x,y,z,angle)
B. rotated(x,y,z,angle)
C. rotate-all(x,y,z,angle)
D. rotate(x,y,z,angle)
Answer» B. rotated(x,y,z,angle)
106.

_ An ___________ rule can be used to define style rules for multiple media types in a single embedded style sheet$?

A. @media
B. @charset
C. @font-face
D. None of the mentioned
Answer» B. @charset
107.

_ Which of the following property defines the style, width, and color of the rule divider between columns in a multicolumn text flow?$?

A. column
B. column-rule
C. column-change
D. column-check
Answer» C. column-change
108.

_ Which of the following measurement defines a measurement in points?$?

A. px
B. in
C. em
D. pt
Answer» E.
109.

_ Which of the following measurement is relative to 1percentage of the width of the viewport?$?

A. vw
B. vmax
C. vmin
D. ch
Answer» B. vmax
110.

_ Which of the following property aligns the flexible container’s items when the items do not use all available space on the main-axis?$?

A. wrap-content
B. fix-content
C. adjust-content
D. justify-content
Answer» E.
111.

_ The ______________ is the link between the HTML document and the style. It specifies what elements are affected by the declaration.$?

A. Tag
B. Selector
C. Declaration
D. Class
Answer» C. Declaration
112.

_ ____________ property associates a background image with an element.$?

A. image
B. background-image
C. float
D. none of the mentioned
Answer» C. float
113.

_ Identify the CSS property that specifies the length of the space used for the tab character.$?

A. size
B. tab-size
C. tab-space
D. all of the mentioned
Answer» C. tab-space
114.

_ Which of the following property is used to give a 3-D sense of depth to an element?$?

A. overflow-style
B. opacity
C. overflow-x
D. perspective
Answer» E.
115.

_ Which of the following is the Color Format that is a CSS’s six-digit hexadecimal format as color defined in (X)HTML?$?

A. Specification defined named colors
B. System Color Names
C. 6-Hex Color
D. 3-Hex Color
Answer» D. 3-Hex Color
116.

_ The __________ specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.$?

A. author
B. user
C. user-agent
D. none of the mentioned
Answer» B. user
117.

_ _____________ property specifies whether the mask should scroll or stay fixed when the page is scrolled.$?

A. mask-image
B. mask-box-image
C. mask-attachment
D. mask-origin
Answer» D. mask-origin
118.

_ Which of the following CSS Property sets the stacking order of positioned elements?$?

A. x-index
B. y-index
C. z-index
D. all of the mentioned
Answer» D. all of the mentioned
119.

_ Which of the following property defines the visual style of up to four different sides of a border?$?

A. border-width
B. border-top
C. border
D. border-style
Answer» E.
120.

_ The _____________ property allows us to include the padding and border in an element’s total width and height.$?

A. margin
B. box-sizing
C. padding
D. none of the mentioned
Answer» C. padding
121.

_Which of the following property is used to define how nested items are rendered in a 3-D space?$?

A. transform-style
B. transform
C. transform-origin
D. transform-3D
Answer» B. transform
122.

_Which of the following CSS Property specifies the position of the mask?$?

A. mask
B. mask-position
C. mask-origin
D. none of the mentioned
Answer» C. mask-origin
123.

_Which of the following property of a anchor element signifies unvisited hyperlinks?$?

A. link
B. visited
C. hover
D. active
Answer» B. visited
124.

_Which of the following property is used to align the text in a table?$?

A. align
B. text
C. text-align
D. none of the mentioned
Answer» D. none of the mentioned
125.

_Which of the following property is used to change the width of table?$?

A. width
B. table
C. table-width
D. resize
Answer» B. table
126.

_Which of the following property is used to describe all transition-related properties at once?$?

A. transition-set
B. transition-wrap
C. transition
D. animation
Answer» D. animation
127.

_Which of the following property is used in conjunction with the :before or :after pseudo-elements?$?

A. text
B. generated-content
C. content
D. none of the mentioned
Answer» D. none of the mentioned
128.

_Which of the following property determines how the cursor displays when passed over the affected element?$?

A. mouse
B. cursor
C. click
D. focus
Answer» E.
129.

_Which of the following property defines the resampling method to use when stretching images?$?

A. layout
B. ime-mode
C. image-rendering
D. none of the mentioned
Answer» D. none of the mentioned
130.

_Which of the following property is used to define the number of times an animation should play?$?

A. animation-direction
B. animation-iteration-count
C. animation
D. animation-timing-function
Answer» C. animation
131.

_Which of the following property determines whether or not an element is visible?$?

A. display
B. visibility
C. transperancy
D. disappear
Answer» C. transperancy
132.

_Which of the following CSS Property sets the pace of the transition to the next keyframe, as described in the previous section?$?

A. animation-timing-function
B. animation-pace-function
C. animation-transition-function
D. none of the mentioned
Answer» B. animation-pace-function
133.

_Which of the following property defines the style of quotation marks to be used with embedded quotations?$?

A. article
B. para
C. quote
D. quotes
Answer» E.
134.

_Which of the following transform property value defines a 3D scale transformation?$?

A. circle(x,y,z)
B. scale3d(x,y,z)
C. rotate3d(x,y,z,angle)
D. rotate(angle)
Answer» C. rotate3d(x,y,z,angle)
135.

_Which of the following transform property value defines a 3D rotation along the Z-axis?$?

A. rotate-Z(angle)
B. rotate-Z-axis(angle)
C. rotateZ(angle)
D. all of the mentioned
Answer» D. all of the mentioned
136.

_A single _____________ rule can be used in an external sheet to define character set encoding of the style rules and values.$?

A. @media
B. @charset
C. @font-face
D. None of the mentioned
Answer» C. @font-face
137.

_Which of the following property defines the gap between columns in a multicolumn text flow?$?

A. column-float
B. column-flow
C. column-gap
D. column-width
Answer» D. column-width
138.

_Which of the following measurement defines a measurement relative to the height of a font in em spaces?$?

A. px
B. in
C. em
D. pt
Answer» D. pt
139.

_Which of the following measurement is relative to 1percentage of viewport’s larger dimension?$?

A. vw
B. vmax
C. vmin
D. ch
Answer» C. vmin
140.

_Which of the following specifies how much the item will grow relative to the rest of the flexible items inside the same container?$?

A. flex-scale
B. flex-size
C. flex-grow
D. flex-flow
Answer» D. flex-flow
141.

_Which of the following option a declaration consist of?$?

A. Tag
B. Property
C. Selector
D. Class
Answer» C. Selector
142.

_______________ property sets the background image to scroll or not to scroll with its associated element’s content$?

A. background
B. background-position
C. background-attachment
D. none of the mentioned
Answer» D. none of the mentioned
143.

_Which of the following is an appropriate value for overflow element?$?

A. hidden
B. auto
C. scroll
D. all of the mentioned
Answer» E.
144.

_Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?$?

A. scrollbar-base-color
B. scrollbar-arrow-color
C. scrollbar-darkshadow-color
D. scrollbar-face-color
Answer» E.
145.

_Which of the following defined as alphanumeric names that correspond to some current counter value in a document?$?

A. Class
B. Key
C. Counters
D. None of the mentioned
Answer» D. None of the mentioned
146.

_The ___________________ property specifies whether or not an element should be resizable by the user.$?

A. Outline Offset
B. Resize
C. Unit
D. None of the mentioned
Answer» C. Unit
147.

____________ property defines a mask to be used as a box’s overlay in order to clip the box to a complex shape.$?

A. mask
B. mask-box-image
C. mask-attachment
D. mask-origin
Answer» B. mask-box-image
148.

Which of the following CSS Property Specifies the left offset of a positioned element?$?

A. right
B. left
C. bottom
D. up
Answer» C. bottom
149.

Which of the following property defines the style for the right border of an element?$?

A. border-left
B. border-right
C. border-right-style
D. border-style
Answer» D. border-style
150.

The ___________ property specifies if/how an element is displayed.$?

A. background-color
B. border
C. color
D. display
Answer» E.