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. Which of the following CSS property determines how overflowed content that is not displayed is signaled to the users?
text-flow
text-underflow
text-overflow
none of the mentioned
2. Which of the following sets the mode for the overline text decoration determining whether the text decoration affects the space characters or not?
text-decoration
text-mode-overflow
text-mode
text-overline-mode
3. Which of the following specifies what parts of an element s content are skipped over when applying any text decoration?
@font-text
font-style
text-skip
text-decoration-skip
4. Which of the following is not a appropriate value for text-overline-width?
thin
medium
<number>
none of the mentioned
5. Which of the following property applies one or more drop shadows to the text?
text-shadow
text-effect
text-format
text-decoration-shadow
6. Which of the following property sets the apparent position (in stereo sounof the synthesized voice for spoken media?
voice-balance
media-balance
balance
none of the mentioned
7. 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?
@media
voice
voice-duration
all of the mentioned
8. Which of the following property sets the speaker s voice used by a speech media agent to read an element?
voice-family
voice-check
voice-control
none of the mentioned
9. Which of the following property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element?
voice-pitch
voice-range
voice-stress
none of the mentioned
10. Which of the following property sets the speed at which the voice synthesized by a speech media agent will read content?
voice-volume
voice-pitch
voice-stress
voice-rate
11. 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?
voice-check
voice-format
voice-pitch
voice-volume
12. Which of the following property sets the volume for spoken content in speech media. It replaces the deprecated volume property?
voice-volume
volume
!important
@media
13. Which of the following is not a appropriate value for voice-volume?
silent
soft
hard
<number>
14. Which of the following is not a appropriate value for voice-balance?
left
leftwards
up
centre
15. Which of the following is not a appropriate value for voice-rate?
slow
fast
medium
none of the mentioned
16. Which of the following property is used to draw a line around elements outside the borders?
line
padding
outline
border
17. Choose the option that correctly specifies the output of the following CSS.
All span elements will have a red border and a green dotted outline
All span elements will have a green thick border and a red outline
All span elements will have an outer red border and inner green dotted border
All span elements will have a outer green dotted border and an inner red border
18. Which of the following property specifies the color of an outline?
color-outline
outline-color
outline-style-color
none of the mentioned
19. Identify the outline property that specifies the amount of area extended beyond the border box.
outset3d
inset
outset
inset3d
20. Which of the following value specifies a dashed outline?
dash
dashed
double-dash
all of the mentioned
21. Which of the following property specifies the look and design of an outline?
outline-font
outline-style
outline-format
none of the mentioned
22. Which of the following values specifies a 3D grooved outline? initial
initial
ridge
groove
groove3d
23. Select the output of the following CSS.
Box having dotted top outline solid right outline double bottom outline and dashed left outline
Box having dotted top outline solid left outline double bottom outline and dashed right outline
Box having dotted bottom outline solid right outline double top outline and dashed left outline
Box having dotted bottom outline solid left outline double top outline and dashed left outline
24. Which of the following specifies the width of an outline?
outline-size
outline-width
outline-height
both outline-size and outline-width
25. Which of the following value specifies a solid outline?
bold
rock
solid
dashed
26. What does all media type is used for?
For use with all devices
For use with speech synthesizers
For use with handheld devices
For use with tactile Braille devices
27. What does projection media type is used for?
For use with projected media (direct computer-to-projector presentations) or printing transparencies for projection.
For use with color computer screens
For use with handheld devices
For use with television-type devices
28. What does tty media type is used for ?
For use with low-resolution teletypes terminals or other devices with limited display capabilities.
For use with Braille printers.
For use with speech synthesizers.
For use with projected media (direct computer-to-projector presentations) or printing transparencies for projection.
29. What does aural media type is used for ?
For use with low-resolution teletypes terminals or other devices with limited display capabilities
For use with Braille printers
For use with speech synthesizers
For use with projected media (direct computer-to-projector presentations) or printing transparencies for projection
30. What does braille media type is used for?
For use with all devices
For use with speech synthesizers
For use with handheld devices
For use with tactile Braille devices
31. The __________ rule makes it possible to define different style rules for different media types in the same stylesheet.
audio/video
sink
@media
@canvas
32. What is the way to specify media dependencies for style sheets ?
Specify the target medium from a style sheet with the @media or @import at-rules
Specify the target medium within the document language
both Specify the target medium from a style sheet with the @media or @import at-rules and Specify the target medium within the document language
none of the mentioned
33. ndering a document.
tv
tty
media
audio
34. Which of the following property defines in a shorthand form the width style and color for the bottom border of an element?
border-bottom
border-bottom-color
border-bottom-all
none of the mentioned
35. Which of the following property sets the width of an element s bottom border?
border
border-collapse
border-bottom-width
none of the mentioned
36. Which of the following property defines whether table cell borders are connected or separate?
border
border-table
border-collapse
none of the mentioned
37. Which of the following property defines the style for the right border of an element?
border-spacing
border-spacing
border-right
border-right-style
38. Which of the following property defines the color of an element s top border?
border-color
border-top
border-top-color-webkit
border-top-color
39. Which of the following property sets the width of an element s complete border?
border-width
width
border-depth
none of the mentioned
40. Which of the following property defines the visual style of up to four different sides of a border?
border-style
border
border-top
none of the mentioned
41. Which of the following defines in a shorthand form the width style and color for the top border of an element?
border-up
border-bottom
border-style
none of the mentioned
42. Which of the following property defines the y (vertical) coordinate for a positioned element relative to the bottom of the enclosing object or browser window?
border
bottom
position
none of the mentioned
43. Which of the following property specifies the placement of an element in relation to floating objects?
clear
color
space
none of the mentioned
44. Which of the following property specifies the transparency of an element?
alpha
opacity
opac
none of the mentioned
45. Which of the following property defines the offset from an element s border and its outline?
outline-border
outline-offset
overflow-text
None of them
46. Which of the following property allows a marquee to be used in the case of a text overflow?
overflow-style
overflow-text
overflow-marquee
none of the mentioned
47. Which of the following property defines how content should behave when it exceeds the width of its enclosing element?
overflow-y
overflow-x
overflow-z
overflow-width
48. Which of the following property is used to give a 3-D sense of depth to an element?
animation
perspec
sense
perspective
49. Which of the following property is used to define whether an element should be resized and if so upon what axis?
axis
resize
set-origin
set-axis
50. Which of the following property defines the alignment of Ruby text as defined by a <rt> tag in relation to base text defined by a <ruby> tag?
ruby-align
ruby-text
ruby
none of the mentioned
51. Which of the following property sets the base color for a scroll bar which will include the scroll box track and scroll arrows?
scrollbar-base
scrollbar-base-color
scrollbar-background
none of the mentioned
52. Which of the following property defines a color for the face of a scroll bar including arrow regions and the scroll box?
scrollbar-face
scrollbar-face-color
scrollbar-face-background
scrollbar-background
53. Which of the following property defines a highlight color for a scroll bar and scroll arrows?
scrollbar-color
scrollbar-highlight
scrollbar-highlight-color
scrollbar-highlight-background
Submit