Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Profile Card Solution [Plain HTML + CSS]

@faruqAbdulHakim

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feel free to give any feedback or suggestions to my solution. 😉

Community feedback

@petritnuredini

Posted

Congratulations on completing your "Profile Card Component" project! It's always exciting to see a project through to the end, and you've done a great job. Here are some best practices and recommendations that can enhance your work even further:

  1. HTML Structure and Semantics:

    • Use semantic HTML tags: Consider using <section> for the card and <figure> for the image container. This enhances accessibility and SEO.
    • Alt attributes in images: Great job using alt attributes! Remember, they should be descriptive of the image content.
  2. CSS and Design:

    • Responsive Design: Your use of media queries for responsive design is commendable. Ensure thorough testing on various devices.
    • CSS Variables: Excellent use of CSS variables for maintaining a consistent color scheme. This practice significantly improves maintainability.
  3. Code Organization and Readability:

    • Consistent Formatting: Maintain consistent indentation and spacing in your HTML and CSS files. This improves readability.
    • Comments: Adding comments to both HTML and CSS could be helpful for future reference and for others reading your code.
  4. Performance and Optimization:

    • Optimize Images: Ensure your images are optimized for the web to improve loading times.
    • Minify CSS and HTML: For production, consider minifying your CSS and HTML to improve page load speed.
  5. Accessibility:

    • Keyboard Navigation: Ensure that your component is navigable via keyboard, which is a critical aspect of web accessibility.
    • Contrast Ratios: Check color contrast ratios to ensure text is readable by users with visual impairments.
  6. Cross-Browser Compatibility:

    • Test Across Browsers: Make sure to test your component in different browsers to ensure consistent behavior and appearance.
  7. Further Learning Resources:

Keep up the excellent work and continue to explore and experiment! Every project is a step forward in your development journey. Remember, the tech world is constantly evolving, so staying curious and continuously learning is key to success.

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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