NFT-preview-card-component

Solution retrospective
Please feedback, thanks xd
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
Hi there 👋. Good job on completing the challenge ! I have some feedback for you if you want to improve your code.
HTML:
- Use the
<main>
tag to wrap all the main content of the page instead of the<div class="card">
tag. With this semantic element you can improve the accessibility of your page.
- The image with the "avatar" author is not a decoration, you need to provide an alternative text to tell the user who is the author of the card, its recommended to use the author's name as the
alt
attribute value. e.g.alt="Jules Wyvern"
If you want to learn more about the
alt
attribute, you can read this article.- Instead of using pixels in font-size, use relative units like
em
orrem
. The font-size in absolute units like pixels does not scale with the user's browser settings. This can cause accessibility issues for users who have set their browser to use a larger font size. You can read more about this here.
body { /* font-size: 18px; */ font-size: 1.125rem; . . . }
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
Marked as helpful - Use the
- @yhas14
Wow spot on! Well done, I would look at the accessibility and try to apply them. Otherwise it's perfect.
Join 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