Melvin Aguilar π§π»βπ»β’ 61,200
@MelvinAguilar
Posted
Hi @malek-bt π, good job completing this challenge, and welcome to the Frontend Mentor Community! π
I have some suggestions you might consider to improve your code:
- Use the
<main>
tag to wrap all the main content in your solution instead of using<div class="container">
.
- Use
<footer>
instead of<div class="attribution">
. The<footer>
element contains authorship information.
- Once you update the container
<div class="attribution">
, the footer should be outside the main content.
- The alternative text must not contain hyphens, underscores, or the words "image" or "photo", it must be human readable.
- To make alternative texts more worthwhile, add descriptive text to the alt attribute of the QR image to explain what the QR image does. Upon scanning the QR code, you will be redirected to the frontendmentor.io website, so an example of alternative text would be "QR code to frontendmentor.io". You can read more about alternative text here.
- Instead of using pixels in font size, use relative units of measure like
rem
orem
. The font size in absolute length units (px) does not allow users with limited vision to change the text size in some browsers. Reference.
- In this solution it seems that you have used the bootstrap classes but you have not imported the library, that is to say, there are some leftover classes.
- One suggestion is you can decrease the number of div elements you use a bit with the following code structure:
<body>
<main class="container">
<img />
<h1> . . . </h1>
<p> . . . </p>
</main>
<footer class="attribution">
<p> Challenge by ... </p>
</footer>
<body>
I hope those tips will help you! π
Good job, and happy coding! π
Marked as helpful
1