@erratic-enigma
Posted
Nice work on this challenge! There's a few improvements I can suggest:
You might be interested in reading this article that covers how to plan this challenge's HTML. There are improvements from the article I feel you could implement.
Try to favour using classes consistently in both your markup and CSS. For example, giving classes to your h2
and button
elements and selecting those classes in your CSS.
You are given two images of the product to display depending on the viewport size, but your solution only uses one of them in an img
element. You should use a picture
element to achieve this (the aforementioned article discusses how to use this element if you're unsure).
Happy coding!
Marked as helpful