Design comparison
Solution retrospective
hi, my second challenge still learning grid layout.
if 'css reset' resets all the styling in the browser does that means there is no point of using h1 to h6 in html for title and header and etc?
any feedback is welcome thanks
Community feedback
- @ahmedhanyhPosted almost 2 years ago
The point of using heading elements
<h1>
through<h6>
is to give semantic meaning to the text so that screen reader users can understand the structure and importance of that text, and to also make it easier for them to navigate the page. Don't use the heading elements<h1>
through<h6>
for their default styles applied by the user agent stylesheet, use them to make the site more accessible. Watch this video to learn more and also read this part of this lesson (and take a look at other lessons that focus on semantic HTML from the same course).0 - @HassiaiPosted almost 2 years ago
Replace <h3> and <h4> with <h2> to fix the accessibility issue.
To center .container 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. instead of giving .container a margin value
Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on this watch this https://youtu.be/N5wpD9Ov_To
Hope am helpful HAPPY CODING
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