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 all elements of a type?

A - The Type Selector

B - The Universal Selector

C - The Descendant Selector

D - The Class Selector

Answer : A

Explanation

The Type Selector selects all elements of a type.

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.

Answer : D

Explanation

All of the above options are correct.

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

A - background-color

B - background-image

C - background-repeat

D - background-position

Answer : A

Explanation

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

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 whether a border should be solid, dashed line, double line, or one of the other possible values?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : B

Explanation

The border-style specifies whether a border should be solid, dashed line, double line, or one of the other possible values.

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 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 value of cursor shows it as an arrow?

A - crosshair

B - default

C - pointer

D - move

Answer : B

Explanation

default: An arrow


css_questions_answers.htm

Advertisements