This is a simple accordion design that helps in expanding and collapsing sections of content. Each section can be toggled open or closed by clicking on the section header. This layout is commonly used in FAQs, navigation, and content organization to keep the page clean and user-friendly. The accordion is typically styled with icons (e.g., a “+” or “-” symbol) to show the open or closed state of each section.
Accordion Component Example
HTML Code:
CSS Code:
JavaScript Code: