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.
Users should be able to:
- Hide/Show the answer to a question when the question is clicked
- Navigate the questions and hide/show answers using keyboard navigation alone
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page
- Live Preview Primary URL: QR Code Component | Live Preview
- Live Preview Backup URL: QR Code Component | Live Preview
Similar to other projects I used the design images to build a mock up of the structure I need to apply to ensure a semantic markup and layout. This will be my first time building an accodian from scratch so this will require some research on MDN.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- JavaScript
In this project I have learned that using both the "details" and " summary" elements reduces the code needed for this pattern.
- <details>: The Details disclosure element
- ARIA Authoring Practices Guide (APG)
- Webdev | Details and Summary
- Frontend Mentor - @drod109
- LinkedIn - @dwaynerodrigues
- Twitter - @drod_tweets
- Instagram - @drod108