Skip to content

Commit 13ee277

Browse files
committed
Section 9 - Image optimisations
1 parent 2781446 commit 13ee277

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed
-854 KB
Loading
212 KB
Binary file not shown.

starter/07-Omnifood-Desktop/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,16 @@ <h1 class="heading-primary">
9797
</div>
9898
</div>
9999
<div class="hero-image-box">
100-
<img
101-
src="img/hero.png"
102-
class="hero-img"
103-
alt="Woman enjoying food, meals in storage and food bowls on a table"
104-
/>
100+
<picture>
101+
<source srcset="img/hero.webp" type="image/webp" />
102+
<source srcset="img/hero.png" type="image/png" />
103+
104+
<img
105+
src="img/hero.png"
106+
class="hero-img"
107+
alt="Woman enjoying food, meals in storage and food bowls on a table"
108+
/>
109+
</picture>
105110
</div>
106111
</div>
107112
</section>

0 commit comments

Comments
 (0)