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 using Flexbox

@amalhanaja

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


  1. Create CSS File
  2. Define styleguide sama import font-family
  3. Slicing UI
  • Card (<main>)
  • QR Code (<figure>)
  • QR Image (<img>)
  • Content (<section>)
  • Title (<h1>)
  • Description (<p>)
  1. Implement UI Structure in HTML
  2. Styling using CSS
  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Box shadow
  • Margin shorthand

Community feedback

@HA3IK

Posted

Also, SECTION is tag of "Sectioning Content" category - creates a section that defines the scope of the heading (H1-6) content. That is, semantically, MAIN data (with FIGURE) is outside the context of H1.

Marked as helpful

0

@HA3IK

Posted

Hello. Instead of creating a new separate SECTION for the title and description, you can use FIGCAPTION, which is specifically intended to add text to the FIGURE content.

MAIN > FIGURE > IMG + FIGCAPTION > H1 + P

This will allow you to keep your HTML structure cleaner and more logical.

Marked 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