Q
Which CSS property is used for applying a shadow effect to text?

Answer & Solution

Answer: Option A
Solution:
The correct CSS property to apply a shadow effect to text is text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);. Example: <span style='text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);'>Shadow Text
Related Questions on Average

Which CSS property is used for adding a line through text?

A). text-decoration: line-through;

B). line-decoration: through;

C). text-style: line-through;

D). line-through: true;

How can you center-align text using CSS?

A). text-align: center;

B). align-text: center;

C). center-text: true;

D). text-alignment: center;

Which CSS property is used for adjusting the indentation of text?

A). text-indent: 20px;

B). indentation: 20px;

C). spacing-indent: 20px;

D). text-indentation: 20px;

How can you apply an underline to text using CSS?

A). text-decoration: underline;

B). text-style: underline;

C). text-shadow: underline;

D). text-decor: underline;

How do you align text to the right in CSS?

A). text-align: right;

B). align-text: right;

C). alignment: right;

D). text-alignment: right;

Which property is used for adjusting the indentation of text?

A). text-indent: 20px;

B). indentation: 20px;

C). spacing-indent: 20px;

D). text-indentation: 20px;

Which property is used to adjust the spacing between words in CSS?

A). word-spacing: 5px;

B). spacing-word: 5px;

C). letter-spacing: 5px;

D). spacing: 5px;

Which property is used to adjust the spacing between letters in CSS?

A). letter-spacing: 2px;

B). spacing-letter: 2px;

C). spacing: 2px;

D). word-spacing: 2px;

How can you apply an overline to text using CSS?

A). text-decoration: overline;

B). overline-text: true;

C). text-style: overline;

D). overline: true;

What CSS property is used for setting the line height of text?

A). line-height: 1.5;

B). height-line: 1.5;

C). text-line-height: 1.5;

D). line: 1.5;