QR code component using HTML/CSS/Flexbox
Design comparison
Community feedback
- @Kamlesh0007Posted over 1 year ago
Great job on writing this code! You have demonstrated a good understanding of the concepts and applied them effectively to solve the problem. One suggestion I have is to add an alt attribute to the img tag because it provides a text alternative for the image, which is useful in several ways:
ā¢ ššššš¬š¬š¢šš¢š„š¢šš²: Users with visual impairments rely on screen readers to access the content on web pages. The alt text helps the screen reader software to describe the content of the image, which makes the page more accessible.
ā¢ ššš: Search engine crawlers use the alt text to understand the content of the image, which can help the page to rank better in search engine results.
ā¢ šš¢š¬š©š„šš² š¢š¬š¬š®šš¬: In some cases, the image may not be displayed due to slow internet connection or other technical issues. The alt text can help to provide context and information about the image, even if it's not visible.
So, it's a good practice to always include an alt attribute with a descriptive text for each image in order to improve accessibility and optimize SEO. Here's the code u need to add or modify in ur example:
<img src="image-qr-code.png" alt="qr-code image" >
Marked as helpful0@michael-truscottPosted over 1 year ago@Kamlesh0007 Thank you for the feedback! I've updated the solution to include alt text for the image.
0
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