Design comparison
Solution retrospective
Does my code formatting make it easy to collaborate? Any suggestions for better practices?
Community feedback
- @Mr-jawPosted almost 2 years ago
Hi there! 👋
Great job on completing the challenge
There are some accessibility issues with the code
HTML
-
wrap the
<div class="container"> ... </div>
with the<main>
tag to indicate it as the main component of the project -
the
alt
attribute is important in the<img>
tag. Give it a humanly understandable text. For example;<img class="qr-code" src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">
-
Use headings in order (i.e h1 -> h2 -> h3). Since there is only one main heading use
<h1>
instead of<h3>
CSS
- use relative units like
em
orrem
for padding, margin, width, and height.rem
is preferred for font size. avoid usingpx
since it is an absolute unit.
I hope this was useful 😊
KEEP ON CODING
Marked as helpful1 -
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