<picture> <source srcset="bnr.webp" type="image/webp"> <source srcset="bnr.jpg" type="image/jpeg"> <img src="bnr.jpg" width="200" height="50" alt=""> </picture>
.bnr { width: 200px; height: 50px; background-image: url(bnr.webp); } .no-webp .bnr { background-image: url(bnr.jpg); }