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 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 5 - Which of the following property is used to underline, overline, and strikethrough text?

A - text-indent

B - text-align

C - text-decoration

D - text-transform

Answer : C

Explanation

The text-decoration property is used to underline, overline, and strikethrough text.

Q 6 - Which of the following property of a anchor element signifies an element that currently has the user's mouse pointer hovering over it?

A - :link

B - :visited

C - :hover

D - :active

Answer : C

Explanation

The :hover signifies an element that currently has the user's mouse pointer hovering over it.

Q 7 - Which of the following property specifies the color of a border?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : A

Explanation

The border-color specifies the color of a border.

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 bottom margin of an element?

A - :margin

B - :margin-bottom

C - :margin-top

D - :margin-left

Answer : B

Explanation

The margin-bottom specifies the bottom 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