Skip to main content

Toggle an accordion panel open and closedpractice exercise

HTML5andCSS3 logoPRACTICE

Make the trigger toggle #panel-state between "open" and "closed" on each click. It starts closed.

Acceptance criteria

  1. 1.The first click sets #panel-state to "open".
  2. 2.A second click sets it back to "closed".
  • Northcorp Software
  • Accenture
  • Helpshift
  • Mundrisoft Solutions
  • Nielsen
  • PayPay Corporation
1
0 × 0

Output ready when you are

Press Run to render your code, or Submit to validate your solution.