Accordions are a type of webpage layout that allows you to hide or display large chunks of content behind dropdowns. Accordions work well if you have a page that displays multiple types of content. You could use accordions to help keep the page manageable, and so that people with limited hand mobility don’t have to scroll through a ton of information. (Screen readers have a command to open and close accordions.)
Say you’re creating a page that lists different types of fruits. You want to share information on apples, bananas, and peaches.
Your page could look like:
Different Types of Fruit
How to add an accordion to a page
In WordPress, you can create an accordion with the following shortcode:
To create the Apples accordion, for instance, the code is:
Give it a try!