Design comparison
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there π. Good job on completing the challenge !
The code is very organized, I really like the solution.
I have some suggestions about your code that might interest you.
- You should use the
<a>
tag instead of the<button>
tag because theLearn More
button is a link to another page. Use buttons to perform actions like submitting a form or closing a modal and use links to navigate to another page. You can read more about this here π.
- You must use a level-one heading (h1) even though this is not a full-page challenge. You can create an '<h1>' element within your 'main' element that will be hidden visually but visible and readable by screen readers. The class "sr-only" hides content visually and here are the styles to copy. e.g.:
<h1 class="sr-only">3-column preview card component</h1>
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful2 - You should use the
- @VCaramesPosted almost 2 years ago
Hey there! π Here are some suggestions to help improve your code:
- Implement a "Mobile First" approach π± > π₯
Mobile devices are now the dominant π way in which people browse the web, it is critical that your website/content looks perfect on all mobile devices.
More Info: π
- For this you can do the following instead;
Currently:
.btn:hover, .btn:focus { color: var(--clr-very-light-gray); cursor: pointer; }
Updated:
.btn:is(:hover, :focus) { color: var(--clr-very-light-gray); cursor: pointer; }
- For improved accessibility π for your content, it is best practice β
to use
em
formedia-queries
. Using this unit gives users the ability to scale elements up and down, relative to a set value.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! πππͺ
Marked as helpful1
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