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

Responsive landing page with html & css

Jonathan 50

@Limpi23

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@sirajsharma

Posted

  • Use the <picture> tag for responsive images:

    • It provides better control over image display compared to background images.
    • Refer to this tutorial by Kevin Powell for a detailed explanation.
    • Explore more of Kevin Powell’s tutorials for additional insights.
  • Incorporate semantic HTML and ARIA for better accessibility:

  • Use relative units for a fluid layout:

  • Adopt a mobile-first approach in CSS:

  • Utilize BEM methodology with SCSS:

    • Combining BEM with SCSS enhances organization and maintainability in your CSS.
  • Use the <link> tag to add fonts instead of @import in CSS:

    • The <link> tag is generally preferred because it allows for better performance.
    • Using <link> can improve loading times and reduce render-blocking issues compared to @import, which can delay the rendering of the page.
    • Example: <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
  • General note:

    • These points aim to help you improve your skills and achieve better web design outcomes.
0

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