Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Finishing this challenge
What challenges did you encounter, and how did you overcome them?- Doing the third and fourth page design with flex box only didn't work and had to use grid.
- Adding images src without importing the image, accomplished it by using require()
Is there a way to refresh pages other than home and not get a 404 response on github?
I used "/space-tourism" as a basename but that didn't work.
Community feedback
- @0xabdulkhaliqPosted 6 months ago
Salaam Alaikum π. Congratulations on successfully completing the challenge! π
- I have a suggestion regarding your code that I believe will be of great interest to you.
HTML π·οΈ:
- This solution contains a minor semantic mistake which may cause accessibility issues in real world use cases.
- The
bellefair-subheading-2
entire content is written in caps,
<p class="bellefair-subheading-1"> <span class="bellefair-subheading-2">AVG. DISTANCE</span> 225 mil. km </p>
- Itβs not great for screen readers, because uppercase text will be read out as individual letters (like abbreviations). For example: CSS can read as C.S.S. Just as
AVG. DISTANCE
would be read asA.V.G.D.I.S.T.A.N.C.E
, not as the wordAVG. DISTANCE
- You can read more about that in this article on Medium
- Instead we can use
text-transform: uppercase
to transform the word into all caps.
- And another thing to note, you can't just add
Avg
in markup instead of adding that you can useabbr
element withtitle
attribute to assist accessibility devices.
- The resulted markup would be like this,
<p class="bellefair-subheading-1"> <span class="bellefair-subheading-2"> <abbr title="Average">Avg.</abbr> Distance </span> 225 mil. km </p>
- If you have any questions or need further clarification then feel free to reach out to me.
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0
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