CSS Online Quiz



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 as a percentage relative to another value, typically an enclosing element?

A - %

B - cm

C - em

D - ex

Answer : A

Explanation

% − Defines a measurement as a percentage relative to another value, typically an enclosing element.

Q 3 - Which of the following defines a measurement in points?

A - in

B - mm

C - pc

D - pt

Answer : D

Explanation

pt − Defines a measurement in points. A point is defined as 1/72nd of an inch.

Q 4 - Which of the following property is used to set the background image of an element?

A - background-color

B - background-image

C - background-repeat

D - background-position

Answer : B

Explanation

The background-image property is used to set the background image of an element.

Q 5 - Which of the following property is used to add or subtract space between the letters that make up a word?

A - color

B - direction

C - letter-spacing

D - word-spacing

Answer : C

Explanation

The letter-spacing property is used to add or subtract space between the letters that make up a word.

Q 6 - Which of the following property is used to set the height of an image?

A - border

B - height

C - width

D - -moz-opacity

Answer : B

Explanation

The height property is used to set the height of an image.

Q 7 - Which of the following property of a table element specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style?

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : A

Explanation

The border-collapse specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style.

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

A - :border-top-color

B - :border-left-color

C - :border-right-color

D - :border-bottom-color

Answer : B

Explanation

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

Q 9 - Which of the following property allows you to control the shape or appearance of the marker of a list?

A - list-style-type

B - list-style-position

C - list-style-image

D - list-style

Answer : A

Explanation

The list-style-type allows you to control the shape or appearance of the marker.

Q 10 - Which of the following property specifies the top padding of an element?

A - padding-bottom

B - padding-top

C - padding-left

D - padding-right

Answer : B

Explanation

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

css_questions_answers.htm
Advertisements