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 2 - Which of the following selector selects all paragraph elements whose lang attribute contains the word "fr"?

A - p[lang]

B - p[lang="fr"]

C - p[lang~="fr"]

D - p[lang|="fr"]

Answer : C

Explanation

p[lang~="fr"] − Selects all paragraph elements whose lang attribute contains the word "fr".

Answer : D

Explanation

All of the above options are correct.

Q 4 - Which of the following property is used to create a small-caps effect?

A - font-family

B - font-style

C - font-variant

D - font-weight

Answer : C

Explanation

The font-variant property is used to create a small-caps effect.

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

A - color

B - direction

C - letter-spacing

D - word-spacing

Answer : B

Explanation

The direction property is used to set the text direction.

Q 6 - Which of the following property is used to set the width of an image border?

A - border

B - height

C - width

D - -moz-opacity

Answer : A

Explanation

The border property is used to set the width of an image border.

Q 7 - Which of the following property changes the color of bottom border?

A - :border-color

B - :border-style

C - :border-width

D - :border-bottom-color

Answer : D

Explanation

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

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

A - :border-bottom-width

B - :border-top-width

C - :border-left-width

D - :border-right-width

Answer : C

Explanation

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

Q 9 - Which of the following property specifies an image for the marker rather than a bullet point or number?

A - list-style-type

B - list-style-position

C - list-style-image

D - list-style

Answer : C

Explanation

The list-style-image specifies an image for the marker rather than a bullet point or number.

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