Can I create an accordion or collapsible in HTML?

jsward
Community Member

When I create pages for learning statistics in Canvas, there is often a lot of content on one page, so the page is long and probably challenging to work with. I'd like to make something like an accordion or expandible in the page to hide content. 

Here's an example of what I want to do: 

How To Create an Accordion 

The problem is the code won't work when I copy/paste it into a Canvas page. What/Is there a workaround for this?

Thanks!

Jennifer