Skip to content

FAQ Accordion created with HTML5 and CSS. Coded from design prototype from Frontmentor.io / Frontend Mentor

Notifications You must be signed in to change notification settings

katarzyna-kw/faq-accordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - FAQ accordion card solution

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.

Table of contents

Overview

The challenge

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

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.

Useful resources

  • 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.

Author

About

FAQ Accordion created with HTML5 and CSS. Coded from design prototype from Frontmentor.io / Frontend Mentor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published