Back to Blog

HTML Code Snippets

Learn the core functionality of HTML without any use of JavaScript

Jan 8, 2023 Updated: Jan 8, 2023

Picture Tag

Provide support for WEBP images and also a fallback image.

<picture>
    <source srcset="./img/banner.webp" type="image/webp" />
    <img src="./img/banner.png" alt="" title="awesome image" loading="lazy" class="w-full h-auto" />
</picture>
Contact

Got A Question For Me?

Feel free to ask anything directly on call or fill the form and I will contact back within few hours.