This is a solution to the FAQ accordion challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
π View Live Website
π View Repository
!Desktop Screenshot(./assets/images/screenshot.png)
- Semantic HTML5
- Modern CSS (Flexbox, media queries)
- JavaScript (DOM manipulation + accessibility)
- Mobile-first workflow
- Frontend Mentor Starter Files
- Responsive layout for mobile and desktop
- Accessible FAQ interaction using:
aria-expandedaria-controlsrole="region"
- Smooth toggle animation (optional enhancement)
- Keyboard navigable
- Custom hover and focus states
- How to structure HTML with accessibility in mind
- The importance of
aria-*attributes in building inclusive UI - Efficiently toggling UI states using JavaScript
- Writing clean, reusable styles using BEM / utility-first approach
- Add animations for open/close effect
- Store active FAQ state in localStorage
- Add dark mode
- Frontend Mentor β @Piyush-Rajput7
This challenge was created by Frontend Mentor. Thank you for providing amazing real-world practice challenges!