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 selector matches a element based on its id?

A - The Id Selector

B - The Universal Selector

C - The Descendant Selector

D - The Class Selector

Answer : A

Explanation

The Id Selector matches a element based on its id attribute.

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

A - in

B - mm

C - pc

D - pt

Answer : A

Explanation

in − Defines a measurement in inches.

Q 3 - Which of the following defines 1% of viewport width?

A - px

B - vh

C - vw

D - vmin

Answer : C

Explanation

vw − 1% of viewport width.

Q 4 - Which of the following property is used to change the face of a font?

A - font-family

B - font-style

C - font-variant

D - font-weight

Answer : A

Explanation

The font-family property is used to change the face of a font.

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 control the flow and formatting of text?

A - white-space

B - text-shadow

C - text-decoration

D - text-transform

Answer : A

Explanation

The white-space property is used to control the flow and formatting of text.

Q 7 - Which of the following property changes the color of bottom border?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : D

Explanation

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

Q 8 - Which of the following property changes the style of top border?

A - :border-bottom-style

B - :border-top-style

C - :border-left-style

D - :border-right-style

Answer : B

Explanation

The border-top-style changes the style of top 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