@PhoenixDev22
Posted
Hi maestrobee,
Congratulation on completing your first frontend mentor challenge. Excellent work! I have some suggestions regarding your solution if you don’t mind:
- You should use
<main>
to wrap the card and<footer>
for the attribution. HTML5 landmark elements are used to improve navigation experience on your site for users of assistive technology.
- In my opinion, the alternate text should indicate where the Qr code navigate the user : like
QR code to frontend mentor
. The alternate text should not be hyphenated, it should be human readable.
- Adding
rel="noopener"
orrel="noreferrer"
totarget="_blank"
links. When you link to a page on another site usingtarget=”_blank”
attribute, you can expose your site to performance and security issues.
- For the attribution, never use
<div>
alone to wrap a meaningful content. Just keep in mind that you should usually use semantic HTML in place of the div tag unless none of them (the semantic tags) really match the content to group together. By adding semantic tags to your document, you provide additional information about the document, which aids in communication.
- In order to center the card on the middle of the page , you can use the flex or grid properties and
min-height: 100vh
to the<body>
. Add a little padding to the body that way it stops the component from hitting the edges of the browser. Then you can remove the margin and.box-container
.
width: 340px
an explicit width is not a good way to have a responsive layout. Consider usingmax-width
to the card inrem
instead.
- Consider using
rem
for font size .If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices.
Hopefully this feedback helps.
Marked as helpful
@banjiadewumi
Posted
Hi @PhoenixDev22 , Thank you so much for the feedback, it definitely answered my questions. Also thanks for the guidelines regarding accessibility issues, I will be sure to make these corrections and re-submit.
@PhoenixDev22
Posted
@banjiadewumi
Glad to help. Happy coding!