Design comparison
Solution retrospective
Please tell me how I can improve
Community feedback
- @vanzasetiaPosted over 1 year ago
Hi, Sahulhameedu! 👋
I recommend replacing
<section class="section1">
with<main>
element.<section>
is not a landmark element so you will still get a warning—"All page content should be contained by landmarks".You should replace the
<h4>
with<h1>
. You should always use heading tags in logical order. That's why heading tags have numbers.The QR code is the main content of the page. It is not a decorative image. So, it should have alternative text.
You don't need to have another
<div>
to wrap the card content. You can make the<main>
element as the card.Then, you don't need to use
z-index
andposition
properties.I suggest using a CSS reset whenever you start a new project. This can help you set the styling foundation easily. My recommendation — A Modern CSS Reset | Andy Bell
I hope this helps. Happy coding! 😄
Marked as helpful0 - @GeneroustechnocratPosted over 1 year ago
Hello @Sahulhameedu nice work, but there's a room for improvement, I will advise you stick to style guide that was made available. You didn't use the font-family, I will advise you replace the div tag with main tag for easy accessibility, <h4> with <h2> Img{ max-width: 100%; Border-radius: 15px; Padding:5px; } Work on the body instead of the main tag Body{ min-height:100vh; Display:grid; Place-items:center; } You didn't add color to you p tag, do that as instructed and I hope this is helpful, Happy coding.
Marked as helpful0
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