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 defines a measurement in picas?

A - in

B - mm

C - pc

D - pt

Answer : C

Explanation

pc − Defines a measurement in picas. A pica is equivalent to 12 points; thus, there are 6 picas per inch.

Q 4 - Which of the following property is used to control the scrolling of an image in the background?

A - background-attachment

B - background

C - background-repeat

D - background-position

Answer : A

Explanation

The background-attachment property is used to control the scrolling of an image in the background.

Q 5 - Which of the following property is used to set the color of a text?

A - color

B - direction

C - letter-spacing

D - word-spacing

Answer : A

Explanation

The color property is used to set the color of a text.

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 width of bottom border?

A - :border-bottom-width

B - :border-top-width

C - :border-left-width

D - :border-right-width

Answer : A

Explanation

The border-bottom-width changes the width of bottom 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 value of cursor shows it as the 'I' bar?

A - crosshair

B - default

C - pointer

D - move

Answer : D

Explanation

move: The 'I' bar

css_questions_answers.htm
Advertisements