I have created a HTML and CSS code snippet to showcase a FAQ page with questions and answers, but I want to add a toggle effect. The goal is for users to be able to click on a question and have the answer section expand below it. Below is the HTML code:
<div id="faq_content">
<div class="title">
<strong>FAQs</strong><br>
</div>
<div class="answer_visible">
<div type="button" class="q_button" onclick="">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit? </span>
<i class="fa fa-angle-up"></i>
<i class="fa fa-angle-down"></i>
</div>
<div class="answer">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>
</div>
... (repeated answer_hidden sections)
</div>