Which of the following property applies one or more drop shadows to the text?

text-shadow
text-effect
text-format
text-decoration-shadow

The correct answer is A. text-shadow.

text-shadow is a CSS property that applies one or more drop shadows to text. It takes four values:

  • The horizontal offset of the shadow.
  • The vertical offset of the shadow.
  • The blur radius of the shadow.
  • The color of the shadow.

For example, the following CSS will apply a drop shadow to the text “Hello, world!” with a horizontal offset of 2px, a vertical offset of 4px, a blur radius of 6px, and a color of black:

text-shadow: 2px 4px 6px black;

The other options are incorrect.

  • text-effect is a CSS property that applies one or more text effects to text. It takes a single value, which is the name of the effect to apply.
  • text-format is a CSS property that specifies the format of text. It takes a number of values, which control the font, font size, font weight, font style, and font color of the text.
  • text-decoration-shadow is a CSS property that applies a shadow to the text decoration. It takes the same four values as text-shadow.
Exit mobile version