@PhoenixDev22
Posted
Hi Clare Parkes,
Congratulation on completing this frontend mentor challenge. Your solution looks great. I see you have received some incredible feedback if you don't mind , I have some more suggestions:
- You should use
<main>
for the card. HTML5 landmark elements are used to improve navigation experience on your site for users of assistive technology.
- Images must have alt attribute. In my opinion, the image is an important content. The alternate text is needed on this image. The alternate text should indicate where the Qr code navigate the user : like
QR code to frontend mentor
not describes the image.
- In order to center the card on the middle of the page , you can use the
flexbox
properties andmin-height: 100vh
for the<body>
add a little padding to the body that way it stops the card from hitting the edges of the browser noneed for absolute positioning.
width: 270px;
an explicit width is not a good way to have responsive layout . Consider usingmax-width
to the card inrem
instead .
height: 430px;
It's not recommended to set height to component, let the content of the component define the height.
- Consider using rem and em units as they are flexible, specially for font size better to use rem. 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
- Consider including a git ignore. Less important in this challenge but will become extremely important as you move onto larger projects with build steps
- Using percentages for widths, using max-width and avoiding to set heights for the components, with these things is the key to mastering responsive layouts.
- Remember a css reset on every project. That will do things like set the images to display block and make all browsers display elements the same.
Overall, Excellent work! Hopefully this feedback helps.
Marked as helpful