accordian menu code example

Example 1: html faq

<html>
  <body bgcolor="E1C699">
  <ul>
    <li><strong>What is (WEBSITE)?</strong> <br> <br><em><strong>(WEBSITE)</strong> is a/an (DEATILS).</em><br></li>
    <br><li><strong>How do I post a (na)</strong> <br> <br><em>To create a (na), simply, go to the <strong>(website) homepage</strong> and click "Create a (na)"</em></li>
  </ul>
<style>
        body {
          background-color: navy;
        }
      </style>
  </body>
</html>

Example 2: jacascript faq script

jacascript faq script

Example 3: jquery accordion

<script> 

  $(function() { 

    $('.faqAnswer').slideUp();    // for content 

    $(".faqTitle").on( "click", function() {  // for title 

      var x = $(this).next(); 

      $('.faqAnswer').not(x).slideUp();           

      $(this).next().slideToggle(200); 

    }); 

  }); 

</script>