Accordion

Below is example of accordion section which is used in some of sections in landing pages.

image

  • Apply ID on main parent element as display in line no.1.
  • Use that parent element ID in data-parent=”#accordion” attribute as display in above code line no.6
  • Apply ID on all panels as display in above code line no.11. Use that ID in href=”#collapse-1″ as display on line no.6

 

Related Articles