@pperdana
Posted
Hello there๐!! Congratulations on completing this challange.
- I have some additional recommendations for your code that I think you'll find interesting and valuable.
๐ Image element do not have alt
attributes
in script.js
<img src="${stat.icon}" id="icon-${index}" class="icon">
In this code you should add alt
in your code, with value that tell about your image
<img src="${stat.icon}" id="icon-${index}" class="icon" alt="${alt}">
- This
alt
attribute provides alternative text for images, which is important for accessibility purposes. Screen readers, use the alt attribute to read out loud what the image is about, allowing visually impaired users to understand the content of the page.
I hope you found this helpful! ๐
Happy coding๐ค
Marked as helpful
@dariuss1123
Posted
@Panji200 thanks a lot. i did forgot about the alt text but maybe because i tought of them as icons. I will do at when i edit the project. Have a good day!