Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

[🎄] Insure Landing Page

accessibility
Kaylo•280
@KayloPortal
A solution to the Insure landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


🎄 Project

  • Responsive for mobile & desktop, range 160px+

🔎 Questions

It was my first landing page project, and I think I made some accessibility mistakes

  1. For menu button, I used a div, with three spans inside it. The reason of doing that's to make animated toggle button. Should I put "aria-hidden=true" for the spans (they're just some lines) while I putted an "aria-label" for the parent tag?
<div aria-label="open menu" class="buttons-countainer">
  <div class="lines">
    <span class="line upper-line"></span>
    <span class="line middle-line"></span>
    <span class="line bottom-line"></span>
  </div>
</div>

  1. I know that any image content should have an aria-label. But how about the other contents? should we use labels for them?
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Kaylo's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License