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 value is supposed to be a slightly bolder weight that standard bold in font attribute?
empasize
light
lighter
dark
2. Which of the following property allows contextual adjustment of inter-glyph spacing i.e. the spaces between the characters in text?
font-style
font-family
font-kerning
font-variant
3. Which of the following is not a value for font-style property?
normal
italic
oblique
none of the above
4. Which of the following value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces?
font-weight
font-synthesis
font-kerning
font-variant
5. Which of the following selects a normal or small-caps face from a font family?
font-weight
font-synthesis
font-kerning
font-variant
6. Which of the following is not a appropriate value for font-variant property?
inherit
default
large-caps
small-caps
7. Which of the following property adjusts the font-size of the fallback fonts defined with font-family so that the x-height is the same no matter what font is used?
default
font-size-fallback
font-adjust
font-size-adjust
8. Which of the following Allows you to expand or condense the widths for a normal condensed or expanded font face?
font-style
font-stretch
font-expand
none of the mentioned
9. Which of the following font-size-adjust is value used in calculating the size of the fallback fonts?
auto
number
count
none
10. Which CSS property is equivalent for the attribute <center>?
color
margin
align
font
11. Which CSS property is Equivalent for the align attribute?
float
text-align
centre
float &amp; text-align
12. Which is the latest version of CSS available?
CSS2
CSS3
CSS3.1
CSS4
13. Which CSS property is equivalent for the attribute <font>?
font-family
font-style
color
all of the mentioned
14. Which of the following CSS property is used to give a line over the text?
text-decoration: underline
text-decoration: overline
text-decoration: line-through
text-decoration: none
15. The first CSS specification to become an official W3C Recommendation is ___________
(X)HTML CSS
CSS level 2
CSS level 2.1
CSS level 1
16. _________ 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
17. There is no single integrated ____________________ because it is split into separate modules.CSS1 specification
CSS1 specification
CSS2 specification
CSS3 specification
CSS4 specification
18. 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
19. ___________ 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
20. ___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.
CSS 1
CSS 2
CSS 2.1
CSS 3
21. What will be the output of following code snippet?
color: red text-decoration: underline and font-style: italic all works
text-decoration: underline and font-style: italic works
color: red text-decoration: underline works
only font-style: italic works
22. What will be the output of below mentioned code snippet? h1 {color: green;}
heading becomes green
heading becomes dark-green
error occors
nothings happen
23. Which of the following is the correct way to applying style to a document?
Use an external style sheet either by importing it or by linking to it
Directly embed a document-wide style in the head element of the document
Set an inline style rule using the style attribute directly on an element
All of the mentioned
24. With which tag you write the style rules directly within the document foundwithin the head of the document.
&lt;script&gt;
&lt;php&gt;
&lt;style&gt;
&lt;css&gt;
25. What does screen media type is used for?
For use with all devices
For use with handheld devices
For use with computer screens
For use with television-type devices
26. Which of the following tag is used to linked information should be placed inside?
&lt;head&gt;
&lt;div&gt;
&lt;body&gt;
&lt;html&gt;
27. Which of the following tag can be used to embed a Document-wide styles in a documents head element?
&lt;head&gt;
&lt;style&gt;
&lt;script&gt;
&lt;html&gt;
28. 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
29. Which of the following measurement defines a measurement relative to a fonts x-height?
ex
em
pt
px
30. Which of the following measurement defines measurement as a percentage?
%
cm
em
in
31. Which of the following property sets the font size of text?
text-size
font-size
size
text
32. Which of the following property sets a variation of the specified or default font family?height
height
font-weight
default
font-variant
33. Which of the following property defines labels for a list of items?
list-style-type
list-style-image
list-style
list
34. Which of the following property assigns a graphic image to a list item?
list-style-type
list-style-image
list-style
list
35. Which of the following property sets the amount of spacing between letters?
space
line-height
letter-spacing
letter-space
36. Which of the following CSS3 Color Feature can be used as a macro for whatever the current color is?
CurrentColor keyword
HSLa Color
HSL Color
RGB Color
37. Which of the following CSS3 Color Feature like RGB color but adds an alpha channel value to specify the opacity of the color?
RGB
RGBa
RGBaplha
AlphaRGB
38. Which of the following Color Format is a CSSs six-digit hexadecimal format is the same as color defined in (X)HTML?
6-Hex Color
3-Hex Color
RGBS
RGBa
39. Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating systems color use?
HSLa Color
Commonly defined named colors
System Color Names
Specificationdefined named colors
40. Which of the following Color Format are a 17 defined colors under CSS 2.1?
HSLa Color
Commonly defined named colors
System Color Names
Specificationdefined named colors
41. 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
42. Which of the following Color Format is a CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?
RGB Color
RGBa Color
HSL Color
HSLa Color
43. Which of the following Selector selects an element if its the only child of its parent with its type?
@media
:target
selection
only
44. Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?
:first-letter
:last-child
:first-line
::first-line
45. What does HSL stands for?
Hue Specified Lightness
Hue Spot Lightness
Hue Saturation Lightness
None of the mentioned
46. Which of the following is not an Absolute Unit?
px
em
pt
mm
47. Which of the following unit represent the viewports width?
vh
vmin
vw
ch
48. 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
RGB Color
RGBa Color
HSL Color
HSLa Color
49. Which of the following is not a attribute of the audio element?
controls
src
check
loop
50. 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;
51. Which of the following Protocol enables a hyperlink to access a file on the local file system?
https
ftp
file
telnet
52. Which of the following element is used for linking a External Files to the html page?
&lt;script&gt;
&lt;style&gt;
&lt;link&gt;
all of the above
53. Which of the following attribute specifies the URL of the linked resource?
src
link
rel
href
54. 10. Which of the following color has this value #ff0000?
blue
green
red
yellow
55. Which of the following CSS property defines the different properties of all four sides of an elements border in a single declaration?
border
padding
border-collapse
border-width
56. Identify the CSS property defining bottom-left corner shape of the border?
border-radius
border-corner-radius
border-bottom-left-radius
border-left-radius
57. border-width
border-radius
border-bottom
border-width-down
border-bottom-width
58. Which of the following CSS property border-color property sets the color of an elements four borders?
border-background
border-background-color
border-color
all of the mentioned
59. Choose the CSS property that can be used for collapsing the borders between table cells?
border
collapse-border
border-collapse
border-cell
60. Which CSS property can be used to set the image as border instead of the border style?
background-image
border-image
background-image-source
border-image-source
61. In how many way border-image-width CSS property can be defined?
4
6
8
9
62. Which of the following is not an appropriate value for border-collapse?
all
collapse
inherit
separate
63. Which of the following specifies the distance between the borders of adjacent cells?
border-spacing-cell
border-width-spacing
border-spacing
cell-spacing
64. Which of the following property defines the border-width border-style and border-color of an elements top border in a single declaration?
border
border-top
border-top-corner
border-top-style
65. Which of the following CSS property is used to set the text formatting?
font
font-style
text-decoration
all of the mentioned
66. Which of the following sets the color of any text decoration such as underlines overlines and strike throughs?
text-font
text-format
text-color
text-decoration-color
67. Which of the following sets what kind of line decorations are added to an element such as underlines overlines etc?
text-style
text-decoration
text-line
text-decoration-line
68. Which of the following text-decoration value specifies each line of text has a line above it?
line
underline
overline
blink
69. Which of the following
text-overline
text-overline-decoration
text-overline-width
text-decoration-overline-width
Submit