@vanzasetia
Posted
Hey, Kyle! 👋
Congratulations on completing your first Frontend Mentor challenge! 🎉
Here are some suggestions for improvements.
- I recommend using the
body
element as the flex or grid container. You can use either flexbox or grid. For shorter code, you can use grid withplace-items: center
. Also, there's no need for.container
div. - Wrap all the card elements with a landmark element,
main
element. - Use the
main
as the flex container of the card. - For the card, there's no need for
.content
div. Just, wrap the card withdiv
.
<main>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
</main>
- Swap all the
h1
withh2
. It is not a best practice to have manyh1
on a page. It can confuse the screenreader users because there will be many titles for a single page. I recommend reading the "How-to: Accessible heading structure - The A11Y Project" article to learn how to use headings correctly. - Not every image needs alt text. If the image does not provide any meaningful content, in this case the car icons, consider using empty alt text (
alt=””
). This saves your screen reader users time as they navigate the page. - I recommend taking a look at "Quick tip: Using alt text properly - The A11Y Project".
- Always specify the
type
of thebutton
. It will prevent the button from behaving unexpectedly.
I have three recommended videos. The first one tells how hard HTML is (HTML is not easy). The other two talk about modern CSS techniques and approaches.
- Manuel Matuzović - Lost in Translation - YouTube
- Andy Bell – Be the browser’s mentor, not its micromanager - YouTube
- Stephanie Eeckles - Scaling CSS Layout Beyond Pixels - YouTube
That's it! I hope my feedback answers all your questions! Happy coding!
@CSE-Kyle
Posted
@vanzasetia thank you for the help!
@vanzasetia
Posted
@CSE-Kyle You are welcome!