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

HTML CSS examples for CSS:Quiz

Description

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

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
img {<!-- w w w.  j ava 2 s.c o m-->
    opacity: 0.4;
}
</style>
</head>
<body>

<img src="https://www.java2s.com/style/demo/Opera.png" width="150" height="113">

</body>
</html>

Related Tutorials