index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Optimized Images Showcase</title>
</head>
<body>
<h2>Optimized Image Embedding</h2>
<!-- Standard Responsive Image with Lazy Loading -->
<img src="https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=600"
alt="Web developer writing code on modern laptop"
width="600"
height="400"
loading="lazy"
style="max-width: 100%; height: auto; border-radius: 8px;">
<h2>Next-Gen Picture Element with Fallback</h2>
<picture>
<source srcset="/images/hero.avif" type="image/avif">
<source srcset="/images/hero.webp" type="image/webp">
<img src="/images/hero.jpg" alt="Company Headquarters Architecture" width="800" height="450" loading="lazy">
</picture>
</body>
</html>