what is the css code for transparent background

 what is the css code for transparent background


<html>

<head>

<style>

img {

  opacity: 0.5;

}

</style>

</head>

<body>


<h1>Image Transparency</h1>

<p>The opacity property specifies the transparency of an element. The lower the value, the more transparent:</p>


<p>Image with 50% opacity:</p>

<img src="thinkforu.jpg" alt="Forest" width="170" height="100">


</body>

</html>

Comments

Last 7 Days

How do you give an < image > a tag?