<picture>
<source srcset="img/awesomeWebPImage.webp" type="image/webp">
<source srcset="img/creakyOldJPEG.jpg" type="image/jpeg">
<img src="img/creakyOldJPEG.jpg" alt="Alt Text!">
</picture>
.no-webp .elementWithBackgroundImage {
background-image: url("image.jpg");
}
.webp .elementWithBackgroundImage{
background-image: url("image.webp");
}
Code Example |
---|
Html :: how open url in html in new window with custom size |
Html :: english to spanish |
Html :: intput field submit button |
Html :: Meta keyword tag in html |
Html :: change css angular binding |
Html :: transform bounce css |
Html :: wright word with < in html p tag |
Html :: bold text in html |
Html :: Copyright code |
Html :: text -center bootstrap |
Html :: how to stop html audio |
Html :: rick astley never gonna give you up |
Html :: lorem ipsum full text |
Html :: thumbnail html |
Html :: how to block futer date input |
Html :: html underline tag |
Html :: tailwind search bar |
Html :: picture element html |
Html :: class html |
Html :: instagram icon |
Html :: smaller than small html |
Html :: button in html |
Html :: html images @2x |
Html :: font html |
Html :: react font color |
Html :: div class link |
Html :: table body element |
Html :: object.keys not working in angular html |
Html :: Drop down |
Html :: react uncontrolled input initial value |