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 1 - Which of the following is a component of CSS style rule?

A - Selector

B - Property

C - Value

D - All of the above.

Answer : D

Explanation

All of the above options are correct.

Answer : D

Explanation

All of the above options are correct.

Q 4 - Which of the following property is used to create a small-caps effect?

A - font-family

B - font-style

C - font-variant

D - font-weight

Answer : C

Explanation

The font-variant property is used to create a small-caps effect.

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

A - color

B - direction

C - letter-spacing

D - word-spacing

Answer : D

Explanation

The word-spacing property is used to add or subtract space between the words of a sentence.

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

A - border

B - height

C - width

D - -moz-opacity

Answer : C

Explanation

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

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

A - :border-bottom-style

B - :border-top-style

C - :border-left-style

D - :border-right-style

Answer : A

Explanation

The border-bottom-style changes the style of bottom border.

Q 9 - Which of the following property changes the width of right border?

A - :border-bottom-width

B - :border-top-width

C - :border-left-width

D - :border-right-width

Answer : D

Explanation

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

Q 10 - Which of the following value of cursor shows it as a pointing hand?

A - crosshair

B - default

C - pointer

D - move

Answer : C

Explanation

pointer: A pointing hand (in IE 4 this value is hand).


css_questions_answers.htm

Advertisements