Saturday, December 18, 2021

Convert the image to grayscale

 Convert the image to grayscale


 <!DOCTYPE html>

<html>


<head>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="STYLESHEET" type="text/css" href="web.css">

    <title>web design</title>

</head>


<body>

<p>Convert to image the grayscale</p>

<img src="pin.jpg" width="300" height="400">

<p><strong>Note:</strong> The filter property is not supported in Internet Explorer, Edge 12, or Safari 5.1 and earlier.</p>pineapple.jpg

</body>


</html>


CSS Convert the image to grayscale Style

 img{

  -webkit-filter:grayscale(100%);

  filter: grayscale(100%);

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...