QR Code Component using Flexbox

Solution retrospective
Process Log
- Create CSS File
- Define styleguide sama import font-family
- Slicing UI
- Card (<main>)
- QR Code (<figure>)
- QR Image (<img>)
- Content (<section>)
- Title (<h1>)
- Description (<p>)
- Implement UI Structure in HTML
- Styling using CSS
Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
Lesson Learned
- Box shadow
- Margin shorthand
Please log in to post a comment
Log in with GitHubCommunity feedback
- @HA3IK
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 (withFIGURE
) is outside the context ofH1
.Marked as helpful - @HA3IK
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
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