Skip to content

Commit 1eebcf2

Browse files
committed
Image Optimizations
1 parent 6a9bc4c commit 1eebcf2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

starter/09-Omnifood-Optimizations/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,15 @@ <h1 class="heading-primary">
9696
</div>
9797
</div>
9898
<div class="hero-img-box">
99-
<img
100-
src="img/hero.png"
101-
class="hero-img"
102-
alt="Woman enjoying food, meals in storage container, and food bowls on a table"
103-
/>
99+
<picture>
100+
<source srcset="img/hero.webp" type="image/webp" />
101+
<source srcset="img/hero-min.png" type="image/png" />
102+
<img
103+
src="img/hero-min.png"
104+
class="hero-img"
105+
alt="Woman enjoying food, meals in storage container, and food bowls on a table"
106+
/>
107+
</picture>
104108
</div>
105109
</div>
106110
</section>

0 commit comments

Comments
 (0)