Design comparison
Solution retrospective
Any feedback received! I want to keep growing!
Community feedback
- @VCaramesPosted about 2 years ago
Hey, some suggestions to improve you code:
- To give you HTML code structure, you want to set up your code in the following manner (only did parent containers):
<body> <main> <article class="card-container”> </article> </main> </body>
The Main Element identifies the main content of the document.
While the Article Element will serve as the card’s container, because the card represents a complete, or self-contained, section of content that is, in principle, independently reusable.
More info:
https://web.dev/learn/html/headings-and-sections/
-
The Alt Tag description for the QR image needs to be improved upon. Its needs to tell screen reader users what it is and where it will take them to when they scan it.
-
Update your code with the following to make it fully responsive.
.container{ max-width: 320px; text-align: center; padding: 15px; background-color: var(--White); border-radius: 20px; } .qr-code{ width: 100%; border-radius: 12px; margin-bottom: 15px; }
Happy Coding! 👻🎃
Marked as helpful0 - @correlucasPosted about 2 years ago
👾Hello @CiMorann, Congratulations on completing this challenge!
Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:
The HTML structure is fine and works, and you can reduce at least 20% of your code by cleaning the unnecessary elements, you start cleaning it by removing some unnecessary
<div>
. For this solution you wrap everything inside a single block of content using<div>
or<main>
(better option for accessibility) and put inside the whole content<img>
/<h1>
and<p>
.<body> <main> <img src="./images/image-qr-code.png" alt="QR Code Frontend Mentor" > <h1>Improve your front-end skills by building projects</h1> <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> </main> </body>
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @CiMorannPosted about 2 years ago
Hi! For the next feedback lines I noticed I didn't follow the article HTML guides, forgot and will check that in next project. I didn't either notice a mistake in the bold title as there's a third self added line I didn't mark off.
0
Please log in to post a comment
Log in with GitHubJoin 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