Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div { background-color: red; opacity: 0.5; filter: Alpha(opacity=50); /* IE8 and earlier */ } </style> </head> <body> <div>This element's opacity is 0.5! Note that both the text and the background-color are affected by the opacity level!</div> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_opacity by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:52:46 GMT --> </html>
Result:
Try it Yourself - © w3schools.com