Design comparison
Solution retrospective
I've just started recently, so I didn't bother to incorporate mobile into this one.
Community feedback
- @caarlosdamianPosted 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. .
HTML π·οΈ:
This solution generates accessibility error reports, "All page content should be contained by landmarks" is due to non-semantic markup, which lack landmark for a webpage So fix it by wrapping the whole content ( multiple
section
elements ) with the semantic element <main> element in yourindex.html
file to improve accessibility and organization of your page.What is meant by landmark ?, They used to define major sections of your page instead of relying on generic elements like
<div> or <span>
They convey the structure of your page. For example, the <main> element should include all content directly related to the page's main idea, so there should only be one per pageImg should always have an alternative property, also known as
alt text
, to provide a textual description of the image for users who cannot see the image you can have more information here W3School.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
0 - @Munsif-AliPosted over 1 year ago
In HTML, images should always include alternative text, also known as "alt text," to provide a textual description of the image for users who cannot see the image, such as those who use screen readers or have images turned off in their browser.
If you are encountering an error message stating that images must have alternate text, it means that you have not included the required "alt" attribute in the image tag. To fix the error, simply add the alt attribute to your image tag and provide a brief but descriptive text that accurately describes the content and purpose of the image.
Here's an example of an image tag with the alt
<img src="example.jpg" alt="A red apple on a white background">
In this example, the alt text describes what the image depicts, allowing users who cannot see the image to understand its content.
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