Design comparison
SolutionDesign
Solution retrospective
It needs Just some logical thinking before coding it but as usual, I had an entertaining time coding this one, and also I didn't think that I would face a lot of problems with media queries anyway, I hope to see your opinion about this project.
Community feedback
- @vanzasetiaPosted almost 3 years ago
Hi, Ehab Joe! 👋
Congratulations on completing this challenge! 🎉
It's good to know that you were enjoying building this project. I have some feedback on this solution:
- Accessibility
- Only use
role
attribute when you have to makediv
orspan
as semantic HTML. Otherwise, you don't need it. - For the phone illustration, I would recommend not using landmarks (
header
,main
,footer
), since it's just an illustration (decorative). Also, there's no need to useinput
element andbutton
element. - Don't use
br
elements for presentational purposes. Read what MDN documentation says about it. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the users to control the size of the page based on their needs.
- Only use
- Styling
- I would recommend using pseudo-elements for the shape. That way you'll have more clean HTML.
- Just reference the element that you want to style with the class name. There's no need to increase the specificity by attaching the element.
/* Not recommended */ div.container-dog-owner { ...styles } /* Recommended */ .container-dog-owner { ...styles }
- Best Practice (Recommended)
- Remove the commented code. If another developer (it can be you in the future) wants to improve this solution, he/she might get confused about whether or not the commented code should be used or deleted.
That's it! Happy coding! 😁
Marked as helpful2@huhu0000Posted almost 3 years ago@vanzasetia Thank you for this complete feedback and I will try to improve this solution again.
1 - Accessibility
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