We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2781446 commit 13ee277Copy full SHA for 13ee277
starter/07-Omnifood-Desktop/img/hero.png
-854 KB
starter/07-Omnifood-Desktop/img/hero.webp
212 KB
starter/07-Omnifood-Desktop/index.html
@@ -97,11 +97,16 @@ <h1 class="heading-primary">
97
</div>
98
99
<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
- />
+ <picture>
+ <source srcset="img/hero.webp" type="image/webp" />
+ <source srcset="img/hero.png" type="image/png" />
+
+ <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>
110
111
112
</section>
0 commit comments