Explore topic-wise MCQs in Css.

This section includes 92 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 defines a measurement as a percentage relative to another value, typically an enclosing element?$?

A. %
B. cm
C. em
D. ex
Answer» B. cm
52.

_ 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?$?

A. font-weight
B. font-synthesis
C. font-kerning
D. font-variant
Answer» C. font-kerning
53.

_ Which of the following function two dimensional transformation in matrix format?$?

A. matrix()
B. matrix2d()
C. matrix3d()
D. perspective
Answer» B. matrix2d()
54.

_ Which of the following function with filter property to create your own sophisticated effects on DOM elements?$?

A. create()
B. DOM()
C. custom()
D. none of the mentioned
Answer» D. none of the mentioned
55.

_ What will happen in this case?h1 {color: "green";}$?

A. heading becomes green
B. heading becomes dark-green
C. error occors
D. nothings happen
Answer» E.
56.

_ There is no single, integrated ____________________ because it is split into separate modules.$?

A. CSS1 specification
B. CSS2 specification
C. CSS3 specification
D. CSS4 specification
Answer» E.
57.

_ What is the latest version of css available?$?

A. CSS2
B. CSS3
C. CSS3.1
D. CSS4
Answer» C. CSS3.1
58.

_ Which of the following is correct about CSS?$?

A. CSS is used to control the style of a web document in a simple and easy way.
B. CSS is the acronym for "Cascading Style Sheet".
C. You can write CSS once and then reuse same sheet in multiple HTML pages
D. All of the above
Answer» E.
59.

__Which of the following property defines labels for a list of items?__

A. list-style-type
B. list-style-image
C. list-style
D. none of the above
Answer» B. list-style-image
60.

__Which of the following attributes is used to specify elements to bind style rules to?__

A. id
B. class
C. tag
D. all of the mentioned
Answer» E.
61.

__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?__

A. RGB Color
B. RGBa Color
C. HSL Color
D. HSLa Color
Answer» B. RGBa Color
62.

__Which of the following Color Format is a CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML?__

A. 6-Hex Color
B. 3-Hex Color
C. RGBS
D. RGBa
Answer» B. 3-Hex Color
63.

__Which of the following Selector selects an element if it’s the only child of its parent with its type?__

A. @media
B. :target
C. ::selection
D. :only-of-type
Answer» E.
64.

_Which of the following selector selects all paragraph elements with a lang attribute?$?

A. p[lang]
B. p[lang="fr"]
C. p[lang~="fr"]
D. p[lang|="fr"]
Answer» B. p[lang="fr"]
65.

_Which of the following is not a value for font-style property?$?

A. normal
B. italic
C. oblique
D. none of the above
Answer» E.
66.

_Which of the following function defines a linear gradient as a CSS image?$?

A. grayscale()
B. gradient()
C. image()
D. linear-gradient()
Answer» E.
67.

_Which of the following function adjusts the difference between light and dark values, for use by the filter property?$?

A. contrast()
B. dark()
C. light()
D. brightness()
Answer» B. dark()
68.

_What will happen in this case?h1 {color: red text-decoration: underline; font-style: italic;}$?

A. color: red, text-decoration: underline and font-style: italic all works
B. text-decoration: underline and font-style: italic works
C. color: red, text-decoration: underline works
D. only font-style: italic works
Answer» E.
69.

_________ first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.$?

A. CSS level 1
B. CSS level 2
C. CSS level 3
D. CSS level 2.1
Answer» E.
70.

_What is the CSS Property Equivalent for the align attribute?$?

A. float
B. text-align
C. centre
D. both (A) and (B)
Answer» B. text-align
71.

Which of the following color has this value #ff0000?$?

A. blue
B. green
C. red
D. yellow
Answer» D. yellow
72.

Which of the following property sets a variation of the specified or default font family?$?

A. height
B. font-weight
C. default
D. font-variant
Answer» E.
73.

In css what does “color:red” can be called as$?

A. Selector
B. Rule
C. Declaration
D. None of the above
Answer» D. None of the above
74.

Which of the following unit represent the viewport’s width?$?

A. vh
B. vmin
C. vw
D. ch
Answer» D. ch
75.

Which of the following CSS3 Color Feature like RGB color but adds an alpha channel value to specify the opacity of the color?$?

A. RGB
B. RGBa
C. RGBaplha
D. AlphaRGB
Answer» C. RGBaplha
76.

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?$?

A. RGB Color
B. RGBa Color
C. HSL Color
D. HSLa Color
Answer» E.
77.

What is the CSS Property Equivalent for the attribute
??

A. color
B. margin
C. align
D. none
Answer» C. align
78.

Which of the following selector matches a particular element only when it lies inside a particular element??

A. The Type Selector
B. The Universal Selector
C. The Descendant Selector
D. The Class Selector
Answer» D. The Class Selector
79.

Which of the following function applies a saturation effect to an element’s color, making it appear more or less vivid, for use by the filter property?$

A. color()
B. saturation()
C. saturate()
D. none of the mentioned
Answer» C. saturate()
80.

Which of the following function adjust the brightness of an element’s color, for use by the filter property?$

A. contrast()
B. dark()
C. light()
D. brightness()
Answer» E.
81.

___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.

A. CSS 1
B. CSS 2
C. CSS 2.1
D. CSS 3
Answer» D. CSS 3
82.

The first CSS specification to become an official W3C Recommendation is ___________

A. (X)HTML CSS
B. CSS level 2
C. CSS level 2.1
D. CSS level 1
Answer» E.
83.

Which of the following attribute specifies the URL of the linked resource?

A. src
B. link
C. rel
D. href
Answer» E.
84.

In css what does h1 can be called as

A. Selector
B. Attribute
C. Value
D. Tag
Answer» B. Attribute
85.

Which of the following selector matches all elements of a type?

A. The Type Selector
B. The Universal Selector
C. The Descendant Selector
D. The Class Selector
Answer» B. The Universal Selector
86.

Which of the following function flips an element’s colors, for use by the filter property?#

A. image()
B. flip()
C. invert()
D. contrast()
Answer» D. contrast()
87.

___________ 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.#

A. align
B. ruby
C. lang
D. text-align
Answer» C. lang
88.

What is the CSS Property Equivalent for the attribute

A. text-decoration:reappear
B. text-decoration:blink
C. text-decoration:no-text
D. none
Answer» D. none
89.

Which of the following Protocol enables a hyperlink to access a file on the local file system?

A. https
B. ftp
C. file
D. telnet
Answer» D. telnet
90.

What is css stands for

A. Color Style Sheets
B. Cascade Sheets Style
C. Cascade Style Sheet
D. Cascading Style Sheets
Answer» E.
91.

What does HSL stands for?

A. Hue Specified Lightness
B. Hue Spot Lightness
C. Hue Saturation Lightness
D. None of the mentioned
Answer» D. None of the mentioned
92.

Which of the following property sets the amount of spacing between letters?

A. space
B. line-height
C. letter-spacing
D. none of the mentioned
Answer» D. none of the mentioned