Set the transparency/opacity of the <h1> element to "0.4". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the transparency/opacity of the <h1> element to "0.4".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
h1 {<!--from  w w  w .  java2 s . com-->
    background-color: red;
    opacity: 0.4;
}
</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