CSS Online Quiz


Advertisements

Following quiz provides Multiple Choice Questions (MCQs) related to CSS. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 2 - Which of the following defines a measurement in centimeters?

A - %

B - cm

C - em

D - ex

Answer : B

Explanation

cm − Defines a measurement in centimeters.

Q 3 - Which of the following uses 1vw or 1vh, whichever is smaller?

A - px

B - vh

C - vw

D - vmin

Answer : D

Explanation

vmin − 1vw or 1vh, whichever is smaller.

Q 4 - 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 : B

Explanation

The font-style property is used to make a font italic or oblique.

Q 5 - Which of the following property is used to add or subtract space between the words of a sentence?

A - text-indent

B - text-align

C - text-decoration

D - text-transform

Answer : A

Explanation

The text-indent property is used to indent the text of a paragraph.

Q 6 - Which of the following property is used to set the text shadow around a text?

A - white-space

B - text-shadow

C - text-decoration

D - text-transform

Answer : B

Explanation

The text-shadow property is used to set the text shadow around a text.

Q 7 - Which of the following property of a table element specifies whether the border should be shown if a cell is empty?

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : D

Explanation

The empty-cells specifies whether the border should be shown if a cell is empty.

Q 8 - Which of the following property changes the color of right border?

A - :border-top-color

B - :border-left-color

C - :border-right-color

D - :border-bottom-color

Answer : C

Explanation

The border-right-color changes the color of right border.

Q 9 - Which of the following property specifies the top margin of an element?

A - :margin

B - :margin-bottom

C - :margin-top

D - :margin-left

Answer : C

Explanation

The margin-top specifies the top margin of an element.

Q 10 - Which of the following property specifies the distance between a marker and the text in the list?

A - marker-offset

B - list-style-position

C - list-style-image

D - list-style

Answer : A

Explanation

The marker-offset specifies the distance between a marker and the text in the list.

css_questions_answers.htm
Advertisements