<main>
  <h1>FAQ: Frequent Accordion Questions</h1>
  <section id="accordion" class="accordion">
    <div class="accordion-container">

      <details class="accordion-item">
        <summary class="accordion-trigger">
          <span class="accordion-title">
            How does an accordion work?
          </span>
          <span class="accordion-icon" aria-hidden="true">
            &plus;
          </span>

        </summary>
        <div class="accordion-content">
          <p>It toggles collapsible content based on user interaction.</p>
        </div>
      </details>

      <details class="accordion-item">
        <summary class="accordion-trigger">
          <span class="accordion-title">
            Why should I use an accordion?
          </span>
          <span class="accordion-icon" aria-hidden="true">
            &plus;
          </span>

        </summary>
        <div class="accordion-content">
          <p>It helps improves user exerience by providing condensed information in an easy-to-read manner.</p>
        </div>
      </details>
      <details class="accordion-item">
        <summary class="accordion-trigger">
          <span class="accordion-title">
            Is an accordion a type of animal?
          </span>
          <span class="accordion-icon" aria-hidden="true">
            &plus;
          </span>

        </summary>
        <div class="accordion-content">
          <p>No, you're thinking of an armadillo.</p>
        </div>
      </details>
    </div>
  </section>
</main>

<footer>
  Pen by <a href="https://www.jemimaabu.com" target="_blank" rel="noopener">Jemima Abu</a> <span class="heart">&hearts;</span>
</footer>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.