<html>
<head>
<style>
img {
filter: grayscale(100%); /* Chrome, Safari, Opera */
filter: grayscale(100%);
}
</style>
</head>
<body>
<p>Convert the image to grayscale:</p>
<img src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<p><strong>Note:</strong> The filter property is not supported in Internet Explorer.</p>
</body>
<!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_filter_grayscale by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:27:31 GMT -->
</html>