@MelvinAguilar
Posted
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML π:
- The text
Improve Your Front-End Skills by Building Projects
is considered a heading element.
Alt text π·:
- The
alt
attribute should not contain underscores or hyphens, it must be human readable and understandable.
- The
alt
attribute should not contain the words "image", "photo", or "picture", because the image tag already conveys that information.
-
The
alt
attribute should explain the purpose of the image. Uppon scanning the QR code, the user will be redirected to the frontendmentor.io website, so a betteralt
attribute would beQR code to frontendmentor.io
If you want to learn more about the
alt
attribute, you can read this article. π.
CSS π¨:
-
To center the component in the page, you should use Flexbox or Grid layout. You can read more about centering in CSS here π.
Flexbox:
body { background-color: hsl(212, 45%, 89%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
Grid:
body { background-color: hsl(212, 45%, 89%); min-height: 100vh; display: grid; place-content: center; }
In both methods to prevent distortion, you must reduce the margin and set the footer position to left: 0;
.container { /* margin: 16.7rem auto; */ } .attribution { left: 0; }
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful