Product Preview Card Component made with Flex box and Media Queries
Design comparison
Solution retrospective
This was my first project I would like to get feedback about my code, specially from the HTML document and all the CSS code
Community feedback
- @romila2003Posted over 2 years ago
Hi @AlanLopRey,
Welcome to frontendmentor.io and congratulations 🎉 for completing your first project. It was a good attempt.
When reviewing your code and design, I did notice some issues.
- There are many HTML issues that can be addressed. For example, you forgot to give your
img
element a self-closing tag therefore you received an error regarding this. Most of the issues regarding your HTML was based on the fact that you wrapped your text into thespan
element instead ofdiv
's or other tags. Spans are not used correctly in your code. - It is best practice to wrap your whole code in a
main
tag as this is semantically correct e.g.<main class="container"></main>
. - You can also wrap your footer in a
footer
tag too e.g. `<footer class="attribute"></footer> - You should remove the border with your button e.g.
border: none;
Other than some HTML issues, your CSS looks great and wish you the best of luck with future projects. Keep coding 👍.
Marked as helpful0 - There are many HTML issues that can be addressed. For example, you forgot to give your
- @Enmanuel-Otero-MontanoPosted over 2 years ago
¡Hola Alan! Felicidades por completar el desafío.
Un pequeño feedback para ti:
Yo sustituiría el
<div class="cardContainer">
por una etiqueta main y lo mismo haría con este 👉<div class="textContainer">
, pero en este caso lo sustituiría con una etiqueta section. Todo esto para escribir código lo más semantico posible y brindar una mejor experiencia de usuario en cuanto a accesibilidad.Saludos🦾🦾🦾
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord