PrepAway - Latest Free Exam Questions & Answers

You are developing an HTML5 page that includes several paragraph elements.

You are developing an HTML5 page that includes several paragraph elements.

You have the following requirements:

Add a drop shadow that is one inch below the text in the paragraph

Set the radius of the drop shadow to five pixels

You need to style the paragraphs to meet the requirements.

Which CSS style should you use?

A. Text-shadow: 72pt 0pt 5pt

B. Text-shadow: 5px lin 0px;

C. Text-shadow: 72pt 0em 5px;

D. Text-shadow: 100px 0px 5px;

Explanation:

We set the second argument (vertical) to one inch (1in).

Note

Syntax

text-shadow: h-shadow v-shadow blur color;

Note: The text-shadow propertyattaches one or more shadows to text. The property is a comma-separated list of shadows, each specified by 2 or 3 length values and an optional color. Omitted lengths are 0.

* h-shadow

Required. The position of the horizontal shadow. Negative values are allowed

* v-shadow

Required. The position of the vertical shadow. Negative values are allowed

* blur

Optional. The blur distance

* color

Optional. The color of the shadow.

2 Comments on “You are developing an HTML5 page that includes several paragraph elements.

    1. chite says:

      None of these is right. The question is: “add a ‘drop’ shadow that is one inch below the text in the paragraph”.
      /*text-shadow: offset-x | offset-y | blur-radius | color */




      3



      0

Leave a Reply