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

@DenKuznets

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

@Haywayaheadshot

Posted

Hi Denis

Nice work on the project.

I do have one recommendation.

It is very important for the body of the HTML file to have a main tag. Attached below is a link to help you understand this concept more.

Details about HTML semantics

Also, the README.MD file is supposed to contain details unique to your project. What you have there is the default template. If you go through it carefully, you'll realize that it only serves as a guide on how to detail your project. Please check that and also work on it.

Happy Coding and have a happy new year.

Marked as helpful

1

@DenKuznets

Posted

@Haywayaheadshot hello and thank you for the feedback! I will look into that. Happy new year you too :)

0

@DenKuznets

Posted

@Haywayaheadshot the mdn description says that "The content of a <main> element should be unique to the document ", but in these small newbie challenges we are working mainly on individual page components, is it really necessary to include main in all of these projects?

0

@Haywayaheadshot

Posted

@DenKuznets That is a nice question. And the answer is yes. It is important no matter how small the challenge is. The main advantage is that it help machines identify the beginning of the main content. This is handy when using search engines or screen readers for the blind and vision-impaired.

I hope my answer helped. If you are still not convinced, please check out this article on web accessibility.

Please let me know if you have more questions.

Marked as helpful

1

@MelvinAguilar

Posted

Hi there 👋. Good job on completing the challenge ! In addition to the other suggestions I have some feedback for you if you want to improve your code.

  • The alt attribute should explain the purpose of the image. Uppon scanning the QR code, the user will be redirected to the frontendmentor.io website, so a better alt attribute would be QR code to frontendmentor.io

If you want to learn more about the alt attribute, you can read this article.

  • To center the component in the page, you should use Flexbox or Grid layout. You can read more about centering in CSS here. You can read more about centering in CSS here.

I hope you find it useful! 😄 Above all, the solution you submitted is great!

Happy coding and Happy New Year! 🎉🎊🎁

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