The correct answer is: A. text-shadow
The text-shadow
property in CSS is used to add one or more shadows to text. The shadow is created by offsetting the text by a certain amount in the horizontal, vertical, and blur directions. The shadow can also be given a color.
The syntax for the text-shadow
property is as follows:
text-shadow: <offset-x> <offset-y> <blur-radius> <color>;
The offset-x
and offset-y
values specify the horizontal and vertical offsets of the shadow, respectively. The blur-radius
value specifies the blur radius of the shadow. The color
value specifies the color of the shadow.
For example, the following CSS code will add a shadow to the text “Hello World”:
text-shadow: 2px 2px 2px #000;
This will create a shadow that is 2 pixels to the right, 2 pixels down, and 2 pixels blurry, with a color of black.
The text-shadow
property can be used to create a variety of effects, such as making text stand out from the background, or adding a three-dimensional effect to text.
The other options are incorrect because they are not valid CSS properties.