Solution retrospective
I get "All page content should be contained by landmarks" warning. Any Idea how to fix it?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @gjaynir0508
Hi, I faced the same problem and found the solution in the following article.
Hope this helps.
Marked as helpful - @tesla-ambassador
Hey, this is a pretty awesome solution. I like it.
- if you want all page content to be contained within landmarks, you should make sure that all your "divs, image tags, buttons, forms... etc." are contained in landmarks like "Section, article, main, footer... etc." to enable people that are using screen readers to access your site.
- I think there's some sort of bug when I choose clear completed because it also clears those that I haven't marked as completed.
- Also make sure that all your "li" elements are contained within "ul" i.e. (<ul><li></li></ul> and on the same note, you can't have a div as a child element of an li.
4.Make sure that you only have one main landmark. I recommend that you replace your second main landmark with a section or article. 5. Remember to add labels to form elements to help people that use screen readers to access your site. Otherwise, I think this is a very good solution! Keep up the good work and keep on coding! Kudos!
Marked as helpful
Join 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