Design comparison
SolutionDesign
Solution retrospective
Feedback is most welcome
Community feedback
- @MelvinAguilarPosted 12 months ago
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- Wrap the page's whole main content in the
<main>
tag.
- You should use only one
<h1>
tag per page. The<h1>
tag is the most important heading tag, This can confuse screen reader users and search engines. You can read more about this here ๐.
-
The
<center>
tag is considered obsolete in HTML5, and it is recommended to use CSS styles for centering elements. Two modern and flexible approaches for centering elements are Flexbox and Grid.Using Flexbox:
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Using Grid:
body { min-height: 100vh; display: grid; place-items: center; }
-
Utilize a CSS reset to eliminate default styling variations across browsers.
Popular CSS resets:
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
0 - Wrap the page's whole main content in the
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