Design comparison
SolutionDesign
Solution retrospective
I would love to hear your feedbacks If you have one, thanks!
Community feedback
- @Shivraj-K09Posted over 1 year ago
Your HTML and CSS code look great! Here are a few suggestions on how you can improve further:
- Use more semantic
HTML elements
: Instead of using genericdiv elements
, you can use more semantic elements likeheader
,section
,article
, andfooter
. This makes your code more readable and accessible. - Use responsive images: Adding responsive images with the
srcset
andsizes
attributes can help optimize your website's loading speed and improve user experience. - Write mobile-first CSS: Writing CSS with a
mobile-first
approach means that you focus on styling for smaller screens first and then add on styles for larger screens. This helps you avoid styling conflicts and makes your website more responsive. - Add more accessibility features: Ensure that your website meets accessibility standards by adding
alt text for images
, usingsemantic HTML
, andtesting keyboard accessibility
. - Use CSS variables:
CSS variables
, orcustom properties
, can make your CSS code more modular and easier to maintain. You can define a variable for acolor
,font size
, or any other property, and then use it throughout your code. - Overall, your code looks great and you have followed best practices in HTML and CSS. Keep up the good work!
Marked as helpful0 - Use more semantic
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