This is a solution to the FAQ accordion card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the component depending on their device's screen size
- See hover states for all interactive elements on the page
- Hide/Show the answer to a question when the question is clicked
- Solution URL: https://github.com/katarzyna-kw/faq-accordion
- Live Site URL: https://katarzyna-kw.github.io/faq-accordion
- Semantic HTML5 markup
- CSS properties
- Flexbox
- CSS Grid
- Mobile-first workflow
This is the first time I have used just HTML5 markup and CSS to create an accordion menu versus using Javascript. It was exciting to research about and learn how powerful HTML5 details and summary tags are, as well as how to customize the expand/collapse icons.
- CSSTricks - This article helped me become familiar with the HTML5 details and summary tags.
- NEWBEDEV - This was an excellent resource about how to replace the expand icon of the HTML5 details tag.
- Website - Katarzyna Wegrzynowicz
- Frontend Mentor - @katarzyna-kw
- Github - @katarzyna-kw