First off, my knowledge is only on html and css, definitely not js!
I have reproduced the examples as per here: https://www.w3schools.com/howto/howto_js_accordion.asp
I eventually want to use it on a wordpress site, however, I am just trying to get it working to start with!
I made a simple html file and simply copied and pasted the examples, using the animated accordion, but I cannot get the sections to open! I added the css and js into the header of the html file.
Link: http://utterlydogs.com/accordion/