Computer scienceFrontendCSSBasic propertiesWorking with Text

Text shadow

Reflection

Report a typo

You need to modify the code below such that the output will be same as given in the image below after modifying the code.

Text with shadow

The font-size of the h1 element is 30px. The horizontal shift and the radius of the shadow is zero while the vertical shift is 5px less than the font size of the h1 element. The color of the shadow must be gray.

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reflection</title>
</head>

<body>
<h1>Text-shadow</h1>
</body>
</html>

Completed 1 of 3
The font size of h1 is 30px.
Apply proper reflection to the h1 element as per above given instructions.
___

Create a free account to access the full topic