Design comparison
Solution retrospective
I am not sure about the background. I tried to make it to look like the design but I see it is not really correct.
Community feedback
- @iammukeshmahatoPosted over 2 years ago
Hi @anhhuynh1506,
Congratulaton for completing your first project. You have done a great work.
Its seems Frontend Mentor have generated some Accessibility Issues, they are:-
- Document should have one main landmark
- Page should contain a level-one heading
You can fix this issues by using the following tips:
-
In your index.html file, you have
<section>...</section>
tags, wrap the wholesection
element into a<main>...</main>
to fix the landmark issue. -
Page should contain a level-one heading: You have use a
h2
tag. The heading element should be in order of (h1-h6). To fix this issue simply replaceh2
withh1
and use font-size property to set the size of heading.
My suggeston
You have used each element to reset its margin and padding, insted doing this, i would like to suggest to use
css universal selector
to reset. You can do this like*{ margin: 0; padding: 0; }
Click Here for more information about css selector.
If you have any doubt or query, feel free to contact me.
Keep Coding!!!
Keep Learnign!!!
1@anhhuynh1506Posted over 2 years ago@mukeshmahato843 Thanks so much. It helps me a lots.
0 - @deepak-parmarPosted over 2 years ago
@anhhuynh1506, Visually your work looks so great.
You just have resolve some accessibility issues...
- Document should have one main landmark: for this wrap your whole
section
element usingmain
tag. - Page should contain a level-one heading: heading elements (h1-h6) should always be in order and should always start from the level-one heading
h1
. For your "Order Summary" heading useh1
instead ofh2
. You already havefont-size
property set for the heading, so you'll just have to make a few changes there.
The design won't change a bit, but these changes will improve the accessibility of your component. Again nice work on the challenge. Keep coding! 👍
0@anhhuynh1506Posted over 2 years ago@deepak-parmar Thanks so much for your advices. I will change that.
0 - Document should have one main landmark: for this wrap your whole
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