R4RIN
Articles
Java 8
MCQS
CSS MCQ Quiz Hub
Css Mcq Set 2
Choose a topic to test your knowledge and improve your CSS skills
1. A ___________ is used to define a special state of an element.
pseudo-tag
pseudo-element
pseudo-id
pseudo-class
2. The __________ property specifies the type of positioning method used for an element.
align
float
position
padding
3. Which style is this? <body style="background-color: lightcyan">
Inline Styles
External Style Sheet
External Style Sheettyle Sheet
None of the mentioned
4. Which of the following is the CSS Extension Prefixes for Webkit?
-webkit
-o-
-web
-chrome
5. ______ first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.
CSS level 1
CSS level 2
CSS level 3
CSS level 2.1
6. There is no single, integrated _______ because it is split into separate modules.
CSS1 specification
CSS2 specification
CSS3 specification
CSS4 specification
7. Unlike CSS 2, which is a large single specification defining various features?
CSS level 1
CSS level 2
CSS level 3
CSS level 2.1
8. _______ describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese.
align
ruby
lang
text-align
9. What will be the output of below mentioned code snippet? h1 {color: "green";}
heading becomes green
heading becomes dark-green
error occors
nothings happen
10. With, which tag you write the style rules directly within the document found within the head of the document.
&lt;script&gt;
&lt;php&gt;
&lt;style&gt;
&lt;css&gt;
11. The _____ directive allows style sheets to be grouped and joined together, though some might wonder what the value of this function is given what linked styles provide.
&lt;head&gt;
&lt;style&gt;
&lt;script&gt;
@import
12. Which of the following measurement defines a measurement relative to a font’s x-height?
ex
em
pt
px
13. Which of the following Color Format is a CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML?
6-Hex Color
3-Hex Color
RGBS
RGBa
14. Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use?
HSLa Color
Commonly defined named colors
System Color Names
Specificationdefined named colors
15. Which of the following Color Format is a CSS colors can also be defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them?
RGB Color
RGBa Color
HSL Color
HSLa Color
16. Which of the following Selector selects an element if it’s the only child of its parent with its type?
@media
:target
::selection
:only-of-type
17. Which of the following property sets in a shorthand form any or all background properties?
color
color
background
all of the mentioned
18. Which of the following Color Format can also be defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them?
RGB Color
RGBa Color
HSL Color
HSLa Color
19. Which of the following element is used to specify multiple media resources for media elements like audio and video?
&lt;source&gt;
&lt;link&gt;
&lt;script&gt;
&lt;src&gt;
20. Which of the following property sets the apparent position (in stereo sound) of the synthesized voice for spoken media?
voice-balance
voice-balance
balance
None of the mentioned
21. 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
22. 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
23. ______ types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document.
tv
tty
media
audio
24. Which of the following property sets the size of the font?
font-size
font-variant
font-style
font-weight
25. Which of the following Property controls the display of small caps?
font-size
font-variant
font-style
font-weight
26. Which of the following font-weight property make the text lighter in relation to its parent?
unfocus
normal
lighter
Normal
27. Which of the following property converts text to initial capitals, all uppercase, or all lowercase?
text-transform
text
text-decoration
text-uppercase
28. Which of the following font-variant property render text using the same letter case as in the underlying code?
bold
small-caps
normal
none of the mentioned
29. Which of the following property sets the alignment of the last line of a text block?
overflow-wrap
text-align-last
text-transform
text-indent
30. Which of the following property controls how spaces and word wrapping are handled?
spacing
text-space
white-space
word-spacing
31. Which of the following property specifies what line decorations, if any, are added to the text?
text-decoration-line
text-line-decoration
text-decoration-style
text-style-decoration
32. Which of the following property applies one or more shadows to text?
text-shadow
shadowed
shadow
word-shadow
33. Which of the following property allows long text, such as a URL, to be broken if it would otherwise over?
text-transform
word-wrap
text-overflow
text-indent
34. Which of the following is used to associate a font name to be used in a style sheet with some downloadable font?
@font-face
@charset
@media
!important
35. Which of the following is not value for the font-stretch(Font descriptor)?
normal
50%
expanded
ultra-expanded
36. Which of the following font format is supported by all the latest browser?
EOT
WOFF2
SVG
WOFF
37. Which of the following media query describe output style portrait if height is greater than or equal to width, landscape if the opposite?
grid
monochrome
resolution
Orientation
38. Which of the following media query describe the ratio of the width to the height of the media?
ratio
aspect-ratio
deviceaspect-ratio
Resolution
39. Which of the following media query describe describes the height of the screen or full height of the output page?
height
aspect-ratio
device-height
resolution
40. Which of the following property sets the style of a font?
font
style
font-style
@font-face
41. Which of the following property specifies whether an element is an accelerator indicator or not?
push
accelerator
jump-start
animation
42. Which of the following property adds padding to the top of an element?
height
padding-height
top
padding-top
43. Which of the following display property value is described by treats the element as inline?
inline-block
list-item
block
inline
44. Which of the following property defines the style for the bottom border of an element?
border-bottom-style
border-collapse
border-style-bottom
none of the mentioned
45. Which of the following property defines the style for the left border of an element?
border-style
border-left-style
border-left-width
border-right
46. Which of the following visibility property value is described by The element is not visible, but the layout of surrounding elements is not affected?
visible
hidden
collapse
none of the mentioned
47. Which of the following display property value is described by used internally by browsers to create list items. Of no practical value to web designers?
inline-block
list-item
group
None of these
48. Which of the following property controls the horizontal overflow of a block or inline block?
overflow-x
overflow
overflow-y
overflow-k
49. 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?
visible
scroll
auto
hidden
50. Which of the following property sets a consistent margin on all four sides of the affected element?
boder
margin
padding
none fof the mentioned
Submit