CSS Properties Tutorial Quiz 1

Last Updated :
Discuss
Comments

Question 1

What does display: none; do ?

  • Hides element but keeps space

  • Removes element completely from layout

  • Makes element transparent

  • Only hides text

Question 2

Which property is used to set a background image?

  • background-color

  • background-image

  • image-bg

  • bg-style

Question 3

What does border: 1px solid black; define?

  • Margin

  • Padding

  • Border width, style, and color

  • Font style

Question 4

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

  • font-weight

  • font-style

  • font-family

  • text-style

Question 5

Which CSS property is used to change text color?

  • font-color

  • text-color

  • color

  • background-color

Question 6

What does margin control?

  • Space inside element

  • Space outside element

  • Border thickness

  • Text spacing

Question 7

What does padding control?

  • Space outside element

  • Space inside element

  • Border width

  • Font size

Question 8

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

  • relative

  • static

  • absolute

  • fixed

Question 9

What does overflow: hidden; do?

  • Shows scrollbars

  • Hides overflowing content

  • Expands container

  • Wraps text

Question 10

Which property is used to add shadow to an element?

  • text-shadow

  • box-shadow

  • shadow-effect

  • element-shadow

There are 15 questions to complete.

Take a part in the ongoing discussion