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 3 - Which of the following defines a measurement in screen pixels?

A - px

B - vh

C - vw

D - vmin

Answer : A

Explanation

px − Defines a measurement in screen pixels.

Q 4 - Which of the following property is used to make a font italic or oblique?

A - font-family

B - font-style

C - font-variant

D - font-weight

Answer : B

Explanation

The font-style property is used to make a font italic or oblique.

Q 5 - Which of the following property is used to set the color of a text?

A - color

B - direction

C - letter-spacing

D - word-spacing

Answer : A

Explanation

The color property is used to set the color of a text.

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

A - :link

B - :visited

C - :hover

D - :active

Answer : B

Explanation

The :visited signifies unvisited hyperlinks.

Q 7 - Which of the following property of a table element specifies the width that should appear between table cells?

A - :border-collapse

B - :border-spacing

C - :caption-side

D - :empty-cells

Answer : B

Explanation

The border-spacing specifies the width that should appear between table cells.

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

A - :border-top-color

B - :border-left-color

C - :border-right-color

D - :border-bottom-color

Answer : A

Explanation

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

Q 9 - Which of the following property specifies whether a long point that wraps to a second line should align with the first line or start underneath the start of the marker of a list?

A - list-style-type

B - list-style-position

C - list-style-image

D - list-style

Answer : B

Explanation

The list-style-position specifies whether a long point that wraps to a second line should align with the first line or start underneath the start of the marker.

Q 10 - Which of the following property specifies the bottom padding of an element?

A - padding-bottom

B - padding-top

C - padding-left

D - padding-right

Answer : A

Explanation

The padding-bottom specifies the bottom padding of an element.

css_questions_answers.htm
Advertisements