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 Card Component

@noamweisss

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

Favour 2,140

@Nadine-Green

Posted

HEY NOAM!

CONGRATULATIONS ON COMPLETING YOUR FIRST CHALLENGE!

your solution is an exact replica of the design and I love it however I noticed that you have a few accessibility issues, I can help you fix some of them,

Instead of using a div for the <div class="card">, it would be better to use a semantic element like main instead, the same goes for the .attribution, it would be better to use a footer instead of a div, doing do will not only make your page more accessible but you will have fewer errors as well you can learn more about semantic elements here

IF THIS WAS HELPFUL IN ANY WAY, DON'T HESITATE TO MARK IT AS HELPFUL :)

HAPPY CODING!

Marked as helpful

1
Hassia Issah 50,670

@Hassiai

Posted

Replace <div class="card"> with the main tag and <div class="attribution"> with the footer tag to fix the accessibility issues. There is no need to give the body a width and height value. To center a content on a page, add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body. Increase the width of .card

Hope am helpful

Well done for completing this challenge, you did a good job . HAPPY CODING

Marked as helpful

1

@catherineisonline

Posted

Hey there, nice solution! If you want to improve your code, make sure sure to use footer tag for your attribution div.

You can read more about semantic html here: https://www.w3schools.com/html/html5_semantic_elements.asp

IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL 🤩

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