CSS quiz questions

CSS interview questions

  • 1.

    Which of the following property is used to capitalize text or convert text to uppercase or lowercase letters?

    1. text-indent

    2. text-align

    3. text-decoration

    4. text-transform

    Answer
  • 2.

    Which of the following property is used to add or subtract space between the words of a sentence?

    1. color

    2. direction

    3. letter-spacing

    4. word-spacing

    Answer
  • 3.

    Which of the following property is used to change the face of a font?

    1. font-family

    2. font-style

    3. font-variant

    4. font-weight

    Answer
  • 4.

    Which of the following defines a measurement in picas?

    1. in

    2. mm

    3. pc

    4. pt

    Answer
  • 5.

    Which of the following defines a relative measurement for the height of a font in em spaces?

    1. %

    2. cm

    3. em

    4. ex

    Answer
  • 6.

    Which of the following selector selects all paragraph elements whose lang attribute has a value of exactly "fr"?

    1. p[lang]

    2. p[lang="fr"]

    3. p[lang~="fr"]

    4. p[lang|="fr"]

    Answer
  • 7.

    Which of the following property specifies the left padding of an element?

    1. padding-bottom

    2. padding-top

    3. padding-left

    4. padding-right

    Answer
  • 8.

    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?

    1. list-style-type

    2. list-style-position

    3. list-style-image

    4. list-style

    Answer
  • 9.

    Which of the following property changes the style of bottom border?

    1. :border-bottom-style

    2. :border-top-style

    3. :border-left-style

    4. :border-right-style

    Answer
  • 10.

    Which of the following property of a table element allows browsers to speed up layout of a table by using the first width properties it comes across for the rest of a column rather than having to load the whole table before rendering it?

    1. :table-layout

    2. :border-spacing

    3. :caption-side

    4. :empty-cells

    Answer
  • 11.

    Which of the following property is used to capitalize text or convert text to uppercase or lowercase letters?

    1. text-indent

    2. text-align

    3. text-decoration

    4. text-transform

    Answer
  • 12.

    Which of the following property is used to underline, overline, and strikethrough text?

    1. text-indent

    2. text-align

    3. text-decoration

    4. text-transform

    Answer
  • 13.

    Which of the following property is used to control the scrolling of an image in the background?

    1. background-attachment

    2. background

    3. background-repeat

    4. background-position

    Answer
  • 14.

    Which of the following defines a measurement in screen pixels?

    1. vh

    2. px

    3. vw

    4. vmin

    Answer
  • 15.

    Which of the following defines a measurement in inches?

    1. in

    2. mm

    3. pc

    4. pt

    Answer
  • 16.

    Which of the following selector matches a particular element only when it lies inside a particular element?

    1. The Type Selector

    2. The Universal Selector

    3. The Descendant Selector

    4. The Class Selector

    Answer
  • 17.

    Which of the following property specifies the right padding of an element?

    1. padding-bottom

    2. padding-top

    3. padding-left

    4. padding-right

    Answer
  • 18.

    Which of the following property specifies the left margin of an element?

    1. :margin

    2. :margin-bottom

    3. :margin-top

    4. :margin-left

    Answer
  • 19.

    Which of the following property changes the width of left border?

    1. :border-bottom-width

    2. :border-top-width

    3. :border-left-width

    4. :border-right-width

    Answer
  • 20.

    Which of the following property of a table element specifies whether the border should be shown if a cell is empty?

    1. :border-collapse

    2. :border-spacing

    3. :caption-side

    4. :empty-cells

    Answer

© 2017 QuizBucket.org