Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

QR Code component using very basic HTML & CSS

Kyle•50
@kylecloete
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This one was pretty easy had no problem doing this project

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Chamu•13,760
    @ChamuMutezva
    Posted over 1 year ago

    Hi KYLE.

    Nice work Kyle, here are a few recommendations

    • the HTML looks good, you will need to make use of Landmark elements which are a powerful way to organise the structure of your webpage. Such elements include the header, main and footer . Find out more on MDN or an other resources.
    • the alt value for the image should be readable text that should be able to help users when the image fails to load or for the benefit of assistive tech users.
    • Font sizes should be in values such as rem or em, the following article is a good article on Why font-size must NEVER be in pixels
    • explicit width can be tricky to handle , like in the following example on the card width: 350px; . If my device has a width of 320px that will not be presented because of the explicit width mentioned earlier - such situations are handles well using a max-width . This particular challenge does not need a media query , if you set the card to the maximum width it should take (in rems) , eg max-width: 26rem , the card will scale accordingly on all device sizes but will never exceed 26rem. You may need to add some padding on the container in order to leave some space if needed.
    • Check out my solution here

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub