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

qr code component main using HTML and CSS

@MoualiMust

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

PhoenixDev22 16,950

@PhoenixDev22

Posted

Greeting @MoualiMust,

Congratulation on completing your first frontend mentor challenge,

I have few suggestions regarding your solution:

  • To tackle the accessibility issues, you can use landmark <main> to wrap the card . HTML5 landmark elements are used to improve navigation .

  • Page should contain a level-one heading . As this is not a real webpage , you can use <h1> with class="sr-only" (Hidden visually, but present for assistive tech) and use <h2> instead of <h3>. Always remember using heading tags in chronological order.

  • When you write alternative text, it should not be hyphenated. The alternative text should be human-readable ex : **qr code for frontend mentor **

  • width: 15rem;an explicit width is not a good way . consider using max-width to card instead and a little margin to the card .

  • To center the card on the middle of the page , you can use the flexbox properties as you did and min-height: 100vh for the <body> .

  • You should use em and rem units .Both em and rem are relative units , Using px won't allow the user to control the font size based on their needs.

  • It's recommended not to use px for font-size. you can use rem instead .

Overall , your solution is good. Hopefully this feedback helps.

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