This is a solution to the Product preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- This was my first chalaange from Frontend Mentor. It was just basics of html and css. This project gives a good understanding of HTML and CSS
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover and focus states for interactive elements
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I learned use of grid and some elements like article tag and some media query.
To see how you can add code snippets, see below:
<article>
<picture>
<source media="(min-width: 640px)" srcset="images/image-product-desktop.jpg"/>
<img src="./images/image-product-mobile.jpg" alt="">
</picture>
</article>
<article>