CSS Properties Tutorial Quiz 1

Last Updated :
Discuss
Comments

Question 1

What does display: none; do ?

  • A

    Hides element but keeps space

  • B

    Removes element completely from layout

  • C

    Makes element transparent

  • D

    Only hides text

Question 2

Which property is used to set a background image?

  • A

    background-color

  • B

    background-image

  • C

    image-bg

  • D

    bg-style

Question 3

What does border: 1px solid black; define?

  • A

    Margin

  • B

    Padding

  • C

    Border width, style, and color

  • D

    Font style

Question 4

Which property changes the font style (italic/normal)?

  • A

    font-weight

  • B

    font-style

  • C

    font-family

  • D

    text-style

Question 5

Which CSS property is used to change text color?

  • A

    font-color

  • B

    text-color

  • C

    color

  • D

    background-color

Question 6

What does margin control?

  • A

    Space inside element

  • B

    Space outside element

  • C

    Border thickness

  • D

    Text spacing

Question 7

What does padding control?

  • A

    Space outside element

  • B

    Space inside element

  • C

    Border width

  • D

    Font size

Question 8

Which position value removes an element from normal flow and positions it relative to the viewport?

  • A

    relative

  • B

    static

  • C

    absolute

  • D

    fixed

Question 9

What does overflow: hidden; do?

  • A

    Shows scrollbars

  • B

    Hides overflowing content

  • C

    Expands container

  • D

    Wraps text

Question 10

Which property is used to add shadow to an element?

  • A

    text-shadow

  • B

    box-shadow

  • C

    shadow-effect

  • D

    element-shadow

There are 15 questions to complete.

Take a part in the ongoing discussion