Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> img.a { opacity: 1; filter: alpha(opacity=100); } img.b { opacity: 0.6; filter: alpha(opacity=100); } img.c { opacity: 0.2; filter: alpha(opacity=100); } </style> </head> <body> <h2>Opacity property example</h2> <h3>Opacity: 1.0;</h3> <img src="/uploads/media/default/0001/01/4982c4f43023330a662b9baed5a407e391ae6161.jpeg" alt="house" width="300" height="300" class="a"> <h3>Opacity: 0.6;</h3> <img src="/uploads/media/default/0001/01/4982c4f43023330a662b9baed5a407e391ae6161.jpeg" alt="house" width="300" height="300" class="b"> <h3>Opacity: 0.2;</h3> <img src="/uploads/media/default/0001/01/4982c4f43023330a662b9baed5a407e391ae6161.jpeg" alt="house" width="300" height="300" class="c"> </body> </html>