Explore topic-wise MCQs in Css.

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

51.

*/*_Which of the following visibility property value is described by The element is not visible, but the layout of surrounding elements is not affected??

A. visible
B. hidden
C. collapse
D. none of the mentioned
Answer» C. collapse
52.

*/*_Which of the following media query describe the ratio of the width to the height of the media??

A. ratio
B. aspect-ratio
C. deviceaspect-ratio
D. resolution
Answer» C. deviceaspect-ratio
53.

*/*_Which of the following property sets the font size of text??

A. font
B. font-text
C. font-size
D. none of the mentioned
Answer» C. font-size
54.

*/*_Which of the following property defines in a shorthand form the width, style, and color for all four sides of an element’s border??

A. border
B. border-style
C. border-color
D. border-all
Answer» B. border-style
55.

*/*_Which of the following property defines a color for the right and bottom edges of a scroll bar.?

A. scrollbar-color
B. scrollbar-darkshadow-color
C. scrollbar-shadow
D. scrollbar-shadow-color
Answer» E.
56.

*/*_Which of the following property defines the visual style of up to four different sides of a border??

A. border-color
B. border-img
C. border-visual
D. border-style
Answer» C. border-visual
57.

*/*_Which of the following CSS property determines how overflowed content that is not displayed is signaled to the users??

A. text-flow
B. text-underflow
C. text-overflow
D. none of the mentioned
Answer» D. none of the mentioned
58.

*/*_Which of the following font-weight property make the text lighter in relation to its parent??

A. unfocus
B. normal
C. lighter
D. normal
Answer» D. normal
59.

*/*_Which of the following property sets the base color for a scroll bar, which will include the scroll box, track, and scroll arrows??

A. scrollbar-base
B. scrollbar-base-color
C. scrollbar-background
D. none of the mentioned
Answer» D. none of the mentioned
60.

*/*_Which of the following property defines the border-width, border-style and border-color of an element’s top border in a single declaration??

A. border
B. border-top
C. border-top-corner
D. border-top-style
Answer» C. border-top-corner
61.

*/*_Which of the following property allows a marquee to be used in the case of a text overflow??

A. overflow-style
B. overflow-text
C. overflow-marquee
D. none of the mentioned
Answer» B. overflow-text
62.

*/*_Which of the following defines in a shorthand form the width, style, and color for the top border of an element??

A. border-up
B. border-bottom
C. border-style
D. none of the mentioned
Answer» E.
63.

*/*_____________ types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document.?

A. tv
B. tty
C. media
D. audio
Answer» D. audio
64.

*/*_What does tty media type is used for ??

A. For use with low-resolution teletypes, terminals, or other devices with limited display capabilities.
B. For use with Braille printers.
C. For use with speech synthesizers.
D. For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.
Answer» B. For use with Braille printers.
65.

*/*_Which of the following property specifies the color of an outline??

A. color-outline
B. outline-color
C. outline-style-color
D. none of the mentioned
Answer» C. outline-style-color
66.

*/*_Which of the following property sets the volume for spoken content in speech media. It replaces the deprecated volume property??

A. voice-volume
B. volume
C. !important
D. @media
Answer» B. volume
67.

*/*_Which of the following property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element’s content??

A. @media
B. voice
C. voice-duration
D. all of the mentioned
Answer» D. all of the mentioned
68.

*/*_Choose the CSS property that can be used for collapsing the borders between table cells??

A. border
B. collapse-border
C. border-collapse
D. border-cell
Answer» D. border-cell
69.

%_Which of the following property controls how spaces and word wrapping are handled?_%

A. spacing
B. text-space
C. white-space
D. word-spacing
Answer» D. word-spacing
70.

_ Which of the following property is used to make a font italic or oblique?$?

A. font-family
B. font-style
C. font-variant
D. font-weight
Answer» C. font-variant
71.

_ Which of the following option best explain this code “background-image: repeating-linear-gradient(to right, #D9CC3C, #FFEB79 5%, #D9CC3C 10%);”?$?

A. Creating a Repeating Gradient
B. Creating a Mix Repeating Gradient
C. Creating a Shadow Repeating Gradient
D. Creating a Smooth Repeating Gradient
Answer» E.
72.

_ Which of the following @viewport Property locks the document in the specified orientation, portrait or landscape?$?

A. orientation
B. resolution
C. landscape
D. portrait
Answer» B. resolution
73.

_ Which of the following is not a browser-specific versions of linear-gradient()?$?

A. -moz-linear-gradient()
B. -o-linear-gradient()
C. -mac-linear-gradient()
D. -webkit-linear-gradient()
Answer» D. -webkit-linear-gradient()
74.

_ Which of the following property sets a consistent margin on all four sides of the affected element?$?

A. boder
B. margin
C. padding
D. none fof the mentioned
Answer» C. padding
75.

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

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

_ Which of the following font format is supported by all the latest browser?$?

A. EOT
B. WOFF2
C. SVG
D. WOFF
Answer» E.
77.

_ Which of the following property sets the font face to be used for text?$?

A. font
B. font-text
C. font-family
D. none of the mentioned
Answer» D. none of the mentioned
78.

_ Which of the following property defines labels for a list of items?$?

A. list-shape
B. list-style
C. list-type
D. list-style-type
Answer» E.
79.

_ Which of the following property defines a shadow color for the right and bottom edges of a scroll bar?$?

A. scrollbar-darkshadow
B. scrollbar-shadow-color
C. scrollbar-darkshadow-color
D. none of the mentioned
Answer» D. none of the mentioned
80.

_ Which of the following property defines the space between cells in a table?$?

A. auto
B. border
C. spacing
D. border-spacing
Answer» E.
81.

_ Which of the following text-decoration value specifies each line of text has a line above it?$?

A. line
B. underline
C. overline
D. blink
Answer» D. blink
82.

_ Which of the following Property controls the display of small caps?$?

A. font-size
B. font-variant
C. font-style
D. font-weight
Answer» C. font-style
83.

_ Which of the following property defines the alignment of Ruby text as defined by a tag, in relation to base text defined by a tag?$?

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

_ Which of the following specifies the distance between the borders of adjacent cells?$?

A. border-spacing-cell
B. border-width-spacing
C. border-spacing
D. cell-spacing
Answer» D. cell-spacing
85.

_ Which of the following property defines the offset from an element’s border and its outline?$?

A. outline-border
B. outline-offset
C. outline-radius
D. none of the mentioned
Answer» C. outline-radius
86.

_ What is the way to specify media dependencies for style sheets ?$?

A. Specify the target medium from a style sheet with the @media or @import at-rules
B. Specify the target medium within the document language
C. both (A) and (B)
D. none of the mentioned
Answer» D. none of the mentioned
87.

_ What does projection media type is used for?$?

A. For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.
B. For use with color computer screens
C. For use with handheld devices
D. For use with television-type devices
Answer» B. For use with color computer screens
88.

_ Choose the option that correctly specifies the output of the following CSS.span { border: 1px solid red; outline: green dotted thick; }$?

A. All span elements will have a red border and a green dotted outline
B. All span elements will have a green thick border and a red outline
C. All span elements will have an outer red border and inner green dotted border
D. All span elements will have a outer green dotted border and an inner red border
Answer» E.
89.

_ Which of the following property sets pitch or tone (high or low) for the synthesized speech when reading an element; the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text?$?

A. voice-check
B. voice-format
C. voice-pitch
D. voice-volume
Answer» D. voice-volume
90.

_ Which of the following property sets the apparent position (in stereo sound) of the synthesized voice for spoken media?$?

A. voice-balance
B. media-balance
C. balance
D. none of the mentioned
Answer» B. media-balance
91.

_ Which of the following CSS property border-color property sets the color of an element’s four borders?$?

A. border-background
B. border-background-color
C. border-color
D. all of the mentioned
Answer» D. all of the mentioned
92.

__Which of the following property sets the alignment of the last line of a text block?__

A. overflow-wrap
B. text-align-last
C. text-transform
D. text-indent
Answer» C. text-transform
93.

__Which of the following property applies one or more drop shadows to the text?__

A. text-shadow
B. text-effect
C. text-format
D. text-decoration-shadow
Answer» B. text-effect
94.

__What does all media type is used for?__

A. For use with all devices
B. For use with speech synthesizers
C. For use with handheld devices
D. For use with tactile Braille devices
Answer» B. For use with speech synthesizers
95.

_Which of the following property is used to control the scrolling of an image in the background?$?

A. background-attachment
B. background
C. background-repeat
D. background-position
Answer» B. background
96.

_Which of the following option best explain this code “background-image: repeating-linear-gradient(-45deg, #426A77, #FFF 6px);”?$?

A. Creating Straight Stripes
B. Creating Cubic Stripes
C. Creating Spiral Stripes
D. Creating Diagonal Stripes
Answer» C. Creating Spiral Stripes
97.

_Which of the following @viewport Property sets the viewport height in the same way as width?$?

A. height
B. width
C. viewpor-width
D. none of the mentioned
Answer» B. width
98.

_Which of the following CSS Gradient Functions Creates a radial gradient that repeats infinitely?$?

A. repeat-radial-gradient()
B. repeating-radial-gradient()
C. infinite-radial-gradient()
D. none of the mentioned
Answer» B. repeating-radial-gradient()
99.

_Which of the following Overflow property value is described by scrollbars should be provided if the content is too big, but actual implementation is left up to the browser?$?

A. visible
B. scroll
C. auto
D. hidden
Answer» D. hidden
100.

_Which of the following property defines the style for the bottom border of an element?$?

A. border-bottom-style
B. border-collapse
C. border-style-bottom
D. none of the mentioned
Answer» B. border-collapse