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 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.

Q 2 - Which of the following defines a measurement relative to a font's x-height?

A - %

B - cm

C - em

D - ex

Answer : D

Explanation

ex − This value defines a measurement relative to a font's x-height. The x-height is determined by the height of the font's lowercase letter x.

Answer : D

Explanation

All of the above options are correct.

Q 4 - Which of the following property is used to control the repetition of an image in the background?

A - background-color

B - background-image

C - background-repeat

D - background-position

Answer : C

Explanation

The background-repeat property is used to control the repetition of an image in the background.

Q 5 - Which of the following property is used as shorthand to specify a number of other font properties?

A - font-size

B - font

C - font-variant

D - font-weight

Answer : B

Explanation

The font property is used as shorthand to specify a number of other font properties.

Q 6 - Which of the following property of a anchor element signifies unvisited hyperlinks?

A - :link

B - :visited

C - :hover

D - :active

Answer : A

Explanation

The :link signifies unvisited hyperlinks.

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

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : C

Explanation

The border-width specifies the width of a border.

Q 8 - Which of the following property changes the width of bottom border?

A - :border-bottom-width

B - :border-top-width

C - :border-left-width

D - :border-right-width

Answer : A

Explanation

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

Q 9 - Which of the following property serves as shorthand for the marker properties?

A - list-style-type

B - list-style-position

C - list-style-image

D - list-style

Answer : D

Explanation

The list-style serves as shorthand for the marker properties.

Q 10 - Which of the following value of cursor shows it as crosshair or plus sign?

A - crosshair

B - default

C - pointer

D - move

Answer : A

Explanation

crosshair: A crosshair or plus sign.

css_questions_answers.htm
Advertisements