Design comparison
SolutionDesign
Solution retrospective
NFT Preview Card
Build with:
- HTML5
- CSS
- Flexbox
Any suggestion or improvement to reduce code.
Community feedback
- @fernandolapazPosted over 1 year ago
Hi π, in case you want to take a look:
HTML, ACCESSIBILITY:
- The main content of every page (the card in this case) should be wrapped with the
<main>
tag.
- Every page should have an
<h1>
to improve user experience and because it is an important element when it comes to SEO. It is not a good idea to skip heading levels.
- The Equilibrium image is a meaningful image and therefore should not be a
background-image
, should have analt
text with a description in case the user can't see it.
- On the other hand, the icons are decorative images and therefore need an empty
alt
attribute to be ignored by a screen reader.
CSS:
- When there is a hover state over an element it means that it is interactive, so there must be an interactive element around it (like a link or a button). So, we should use a
<a>
or<button>
to wrap the image (depending on what happened when clicking on it). Also 'Equilibrium #3429' and 'Jules Wyvern' should be wrapped with the<a>
tag.
Please let me know if you want more info on any of these topics or disagree with something. I hope itβs useful π
Regards,
0@sahilataharPosted over 1 year ago@fernandolapaz Thanks for these helpful information.
0 - The main content of every page (the card in this case) should be wrapped with the
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