Design comparison
Solution retrospective
i think my responsive design is not optimal. i couldn't use padding inside of body, i wanted to give some space around my main tag. If someone can explain or point towards a mistake/mistakes i"ll be more than happy to fix it. at the end it was a great project i enjoyed working on it
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML π:
-
It is generally not recommended to use multiple <h1> tags on a single web page because the <h1> tag is used to mark the most important heading on a web page and it is considered the top-level heading in the document outline. It should be used only once on the page, typically for the title or main heading of the page.
You can read more about this here π.
-
The
alt
attribute should not contain the words "image", "photo", or "picture", because the image tag already conveys that information.If you want to learn more about the
alt
attribute, you can read this article. π.
-
Tip: To improve the semantics of your code you should use the
<figure>
and<blockquote>
tags to wrap the testimonials, with this, you will be able to encapsulate the author and the citation of the testimonial.Example:
<figure> <blockquote> <p>"Example of a testimonial"</p> </blockquote> <figcaption> <p>Example of the author</p> </figcaption> </figure>
You can read more about the
<figure>
and<blockquote>
tags with this two links:
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful0@duckit69Posted almost 2 years ago@MelvinAguilar thank you i'll try to include the figure and blockquote tags more in my project for better semantics
1 -
- @HassiaiPosted almost 2 years ago
Give the main a fixed width value in the media query and max-width value in the mobile design for a responsive content.
width: 1100px
max-width: 400px/25rem
. And center the main on the page.To center the main on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
To center the main on the page using flexbox: body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
To center the main on the page using grid: body{ min-height: 100vh; display: grid; place-items: center; }
Marked as helpful0@duckit69Posted almost 2 years ago@Hassiai my grid container is bigger than the main tag when i make my body flex and try to center it nothing happen
0
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