Design comparison
SolutionDesign
Solution retrospective
Hi. I'm new to coding and this is my first submission to a coding challenge. Let me know if there are lines that I should improve and focus on. Thanks.
Community feedback
- @kens-visualsPosted about 3 years ago
Hey @yohannesburp 👋🏻
I have some quick tips to help you fix the accessibility and HTML issues
- Your card should be wrapped in
<main>
tag, like the following:
<main> <img src="./images/illustration-hero.svg" alt="a happy human enjoying music" class="card_top" role="figure"> <section class="card_bottom">...</section> </main>
This will fix the accessibility issues, don't forget to generate a new repot once you fix the issues.
- For the music icon, add
aria-hidden="true”
, because it's for decoration. So, like this<img src="./images/icon-music.svg" aria-hidden="true” class="cardH_img">
. You can read more aboutaria-hidden
here. - Instead of
<section>
, I suggest using regular<div>
for a couple of reasons. First, when you use a<section>
you have to have a heading, likeh1-h6
. Next,<section>
is for bigger parts of layout, such as, contact us about us, image gallery, etc. - Also, I suggest adding
transition: all 0.2s;
to the button and the links, this will make:hover
smoother.
I hope this was helpful 👨🏻💻 For the first project, you did a superb job, keep it up. Cheers 👾
Marked as helpful2@yohannesburpPosted about 3 years agoNo worries, @kens-visuals. This helped me a lot. Thanks and cheers, too.
0 - Your card should be wrapped in
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