Design comparison
Solution retrospective
Couild give me feedback with HTML markup and CSS?
I want to grow up as Frontend developer.
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML π:
- The element
<div class="button card__button">
should be a button and not a div, any element that has a hover state and a pointer cursor is an interactive element (buttons, links, etc).
- You can use the
<picture>
tag when you have different versions of the same image πΌ. Using the<picture>
tag will help you to load the correct image for the user's device. You can read more about this here π.
-
The
alt
attribute should not contain the words "image", "photo", or "picture", because the image tag already conveys that information.If you want to learn more about the
alt
attribute, you can read this article. π.
I hope you find it useful! π
Happy coding!
Marked as helpful0@ReaGetPosted almost 2 years ago@MelvinAguilar Thanks! This is really helpful information.
0 - The element
- @HassiaiPosted almost 2 years ago
Replace <h3> with <h1> to fix the accessibility issue.
To center .card on the page using flexbox, replace the height in .container with min-height: 100vh.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0@ReaGetPosted almost 2 years ago@Hassiai thank you for your feedback! I'm going to read more about relative units :)
0
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