Design comparison
Solution retrospective
Working on this challenges makes me want to learn more about CSS Variables, such as on how to make and use global scoped variable and etc. Other than w3schools, are there any good resource to learn this? Thank you
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there š. Congratulations on successfully completing the challenge! š
- I have other recommendations regarding your code that I believe will be of great interest to you.
DECORATIVE SVG'S āØļø:
- The
alt
attribute is used to provide alternative text for images in HTML documents. Thealt
attribute is used by screen readers to describe the image to visually impaired users, which is essential for web accessibility.
- Now, when it comes to decorative
SVGs
, they are used purely for aesthetic purposes and do not convey any important information or functionality to the user.
- Since these images do not convey any important information or functionality, there is no need for an
alt
attribute.
- So feel free to set the
alt
attribute as""
for decorativesvg's
, becausealt=""
will be skipped by screen readers they will consider the image as decoration
Example:
<img src="images/decorative.svg" alt="">
<img src="/images/icon-sedans.svg" alt="Icon Sedans"> š <img src="/images/icon-sedans.svg" alt="">
.
I hope you find this helpful š Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0@FarrelPPosted over 1 year ago@0xAbdulKhalid I see, so as long the images don't convey or have any important information, I don't have to add alt
attribute
to it. Thank you š0 - @FloRiouffreytPosted over 1 year ago
Take a look at Kevin Powell's channel on Youtube, this guy is a super good tutorial maker, has plenty of super interesting videos, and A LOT of things to learn! https://www.youtube.com/@KevinPowell/videos CSS Custom Properties are really powerful and useful, for example on multi-theme pages. Check out KP's videos on the subject, and the rest too, it goes from super simple to mind blowingly clever. Hope this helps! And good job on the challenge, by the way :)
Marked as helpful0@FarrelPPosted over 1 year ago@FloRiouffreyt Thank you for the recommendation š
1
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