How to Convert an image into grayscale by CSS

CSS |

convert the image into grayscale image using CSS property. In CSS, filter property is used to convert an image into grayscale image. Filter property is mainly used to set the visual effect of an image.

img {
         -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
            }

greyscale