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 2 - Which of the following defines a measurement in centimeters?

A - %

B - cm

C - em

D - ex

Answer : B

Explanation

cm − Defines a measurement in centimeters.

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

A - px

B - vh

C - vw

D - vmin

Answer : B

Explanation

vh − 1% of viewport height.

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

A - background-attachment

B - background

C - background-repeat

D - background-position

Answer : B

Explanation

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

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 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 of a table element controls the placement of the table caption?

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : C

Explanation

The caption-side captions are presented in the element. By default, these are rendered above the table in the document. You use the caption-side property to control the placement of the table caption.

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

A - :border-bottom-width

B - :border-top-width

C - :border-left-width

D - :border-right-width

Answer : B

Explanation

The border-top-width changes the width 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 an arrow?

A - crosshair

B - default

C - pointer

D - move

Answer : B

Explanation

default: An arrow


css_questions_answers.htm

Advertisements