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 CSS QR Code Card.

@dannyswagg

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

@burningbeattle

Posted

Your HTML and CSS code for the QR code component looks solid, but there are a few suggestions for improvement:

HTML Suggestions: Semantic HTML:

Consider using semantic HTML elements where possible. For instance, you could use <section> instead of <div class="card-head"> and <div class="card-body"> for better clarity and accessibility. Image alt Text:

Make the alt text of the image more descriptive. Instead of "qr-code", you might use something like "QR code for Frontend Mentor website" to give users with screen readers more context. Accessibility:

Add lang="en" to the <html> tag if it's not already present in your setup for better accessibility.

CSS Suggestions: Consistency:

The padding and margin values might be improved for consistency. For example, the padding on .card and p might be standardized. Unit Consistency:

Consider using rem or em units consistently for font sizes and spacing to maintain scalability and accessibility. Class Naming:

Make sure class names are descriptive and avoid using generic names like .image. You might use .card-image for clarity. Box Shadow:

Adding a subtle box-shadow to the .card might help it stand out more against the background.

These suggestions aim to enhance the readability, accessibility, and visual appeal of your component. Adjustments are meant to be helpful and can be tailored to fit your specific design and functionality needs.

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