@VCarames
Posted
Hey @kirawesh, some suggestions to improve you code:
-
Along with the blank alt tag, you also want to include the aria-hidden=ātrueā to your car images/icons to fully remove it from assistive technology.
-
The headings are being use incorrectly. For this challenge, each heading is equally as important. So best option, is to use <h2> Heading, because it will give each card the same level of importance and it's reusable.
-
Your "buttons" were created with the incorrect element. When the user clicks on the button they should directed to a different part of you site. The Anchor Tag will achieve this.
-
Implement a Mobile First approach š± > š„
With mobile devices being the predominant way that people view websites/content. It is more crucial than ever to ensure that your website/content looks presentable on all mobile devices. To achieve this, you start building your website/content for smaller screen first and then adjust your content for larger screens.
Happy Coding! š»š
Marked as helpful
@kirawesh
Posted
Hi @vcarames Thank you for such helpful and detailed feedback!
-
I forgot to fill in the alt tags, this is one of the habits I need to implement immediately. Even so, Aria label's tip is definitely useful, I didn't know that I can do that.
-
I'm not sure why using the tag <h2> is correct. According to the hierarchy, should the tag <h1> not be used? Since there are no subtitles. I'm not sure I understood the explanation well. I would appreciate it if you could explain more about it.
-
You're right, but because it's a challenge, I used the button. Anyway, I switched to a tag to get used to doing it correctly. And now it changed the visibility of the design for me, lol. So I fixed some elements following this.
-
You're right about mobile first approach, but why not to start with desktop approach? It's really makes such big difference? If my content isn't looks presentable well on mobile website, I'd love to know about it.
@VCarames
Posted
@kirawesh
Glad I could help!
Since this a component, it would be part of a larger site with lots of sections and components, so it would be an <h3> or even <h4>.
But for this challenge, by giving one of the headings the <h1> heading you are stating that heading is more important than the others. By instead using the, next level heading, <h2>, all the headings now have the exact same level of importance.
As for mobile-first approach, mobile devices are the now dominant way in which users are now browsing the internet.
Unlike, computer monitors, which only have a few different screen sizes (but most of the time our content will look the same regardless on large screens), the difference in mobile device screen is countless.
Think of the different screen sizes and ratios that mobile devices have,(think Samsung Fold, Samsung Flip, etc, iPhone mini...), so while your content may look good in certain device size, it may look warped, broken or just does not accommodate the screen. By implementing the mobile first approach, you can ensure your content looks perfect in all screen sizes.
Most importantly, it is best practice.
Marked as helpful
@kirawesh
Posted
@vcarames I see, thank you for your explanation. I will try now mobile-first approach on the same challenge to see the differences.