Support Modern Image Formats With Fallback Picture

On 6 sec read

HTML Fallback For Modern Image Formats

All modern major web browsers support modern image formats such as WebP and AVIF.

HTML provides a way to support modern image formats with a fallback option.

HTML Picture Tag

Picture Support
Name Type Year
Chrome Web browser 2014
Opera Web browser 2014
Edge Web browser 2015
Firefox Web browser 2015
Safari Web browser 2016
Websites Recommend if applicable 2024

Glossary:

Element

Defined by a start tag, content and end tag. A void element does not have a closing tag.

Tag

Simple instructions telling a web browser how to format content.

Attributes

Additional values that configure elements or adjust them to meet user criteria.

Type

Specifies the MIME type and optionally a codec parameter.

Srcset

URLs of media resource separated by commas.

Sizes

List of source sizes separated by commas.

Media

CSS media query for responsive design.

Height

Intrinsic height of image in pixels.

Width

Intrinsic width of image in pixels.

Picture Element:




<picture>
	<source srcset="ojamboservices-banner-wide.png" media="(min-width: 800px)" />
	<source srcset="ojamboservices-banner-medium.png" media="(min-width: 600px)" />
	<img src="ojamboservices-banner-narrow.png" alt="OjamboServices.com Banner" />
</picture>

Screenshots:

OjamboServices.com App Development
Modern Web Image Version Of OjamboServices.com Application Development Banner

If you need help to convert to WebP or AVIF for SEO or space reasons then contact Ojambo Services. Also if you want to learn programming to “do it yourself” then try Learning PHP which is an online ebook. The only requirement is a web browser. You can use the built-in Web IDE to view your code and compile it online to view the result. You pay once for the online book and get access to the book at anytime without extra costs.

OjamboShop.com Online Learning PHP
Modern Version Of OjamboShop.com Learning PHP Interactive Banner

Conclusion:

Take this opportunity to learn PHP programming language by making a one-time purchase at Learning PHP. A web browser is the only thing needed to learn PHP in 2024 at your leisure. All the developer tools are provided right in your web browser.

References:

🚀 Recommended Resources


Disclosure: Some of the links above are referral links. I may earn a commission if you make a purchase at no extra cost to you.

About Edward

Edward is a software engineer, author, and designer dedicated to providing the actionable blueprints and real-world tools needed to navigate a shifting economic landscape.

With a provocative focus on the evolution of technology—boldly declaring that “programming is dead”—Edward’s latest work, The Recession Business Blueprint, serves as a strategic guide for modern entrepreneurship. His bibliography also includes Mastering Blender Python API and The Algorithmic Serpent.

Beyond the page, Edward produces open-source tool review videos and provides practical resources for the “build it yourself” movement.

📚 Explore His Books – Visit the Book Shop to grab your copies today.

💼 Need Support? – Learn more about Services and the ways to benefit from his expertise.

🔨 Build it Yourself – Download Free Plans for Backyard Structures, Small Living, and Woodworking.