<style>
/*example*/
.tdb-image{
filter: grayscale(80%);
}
</style>
<style>
/*example*/
filter: none | brightness() | blur() | contrast()
| drop-shadow() | sepia() | grayscale() | hue-rotate()
| invert() | opacity() | saturate()
| url();
</style>
<head>
<style>
/*black & white image*/
.tdb-image{
filter: grayscale(100%);
width:100px;
}
/*blur image */
.tdb-image1{
filter: blur(5px);
width:100px;
}
</style>
</head>
<body>
<div>
<img class="tdb-image"
src="js.png" alt="sample image">
<br>
<img class="tdb-image1"
src="js.png" alt="sample image">
</div>
</body>
<style>
img{
filter: blur(5px);
}
</style>
<style>
img{
filter: contrast(50%);
}
/*default value:100% | (1)*/
</style>
Share TDB SCHOOL
Share this E-Learning Website on social media platforms with your friends and followers