It would be helpful if you will disclose more details regarding the code. Are you using a framework? a library? a built-in tool? Do you want it to be pure HTML/CSS? Or is it okay to use a simple JavaScript to achieve such effect? There's so many way to achieve what you want but is fairly simple. In the meantime, here's a revised code based from yours:
<h4><span class="element_toggler btn btn-primary" aria-controls="contact" aria-label="Toggler toggle list visibility" aria-expanded="false"> What are Dr. C's contact information and office hours?</span></h4>
<ul id="contact" style="list-style: none; display: none;">
<li>ANSWER</li>
<li>ANSWER</li>
<li>ANSWER</li>
</ul>
<h4><span class="element_toggler btn btn-primary" aria-controls="classroom" aria-label="Toggler toggle list visibility" aria-expanded="false"> What classroom are we in and what days/times do we meet?</span></h4>
<ul id="classroom" style="list-style: none; display: none;">
<li>ANSWER</li>
<li>ANSWER</li>
<li>ANSWER</li>
</ul>
By the way, I corrected your list structure. Let me know if you need more help.

This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.