Set a "2px" horizontal, and "2px" vertical, text shadow for the <h1> element. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set a "2px" horizontal, and "2px" vertical, text shadow for the <h1> element.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
h1 {<!--from www.ja  v  a  2 s. com-->
    text-shadow: 2px 2px;
}
</style>
</head>
<body>


<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Related Tutorials