So I am trying to integrate some custom code onto Squarespace in order to play audio when you click an image. I am a complete beginner to web dev but I found some HTML code which did the job for one image. So when I click on the image it plays audio. However, this only works for one image and for one audio file. I am assuming that if I want to click on different images, each playing their own audio file, I would have to set up an array for both the image files and audio files. I am not sure if this is the correct solution but if it is, how would I set up an array in HTML? Thanks! Attached is an image of my code.enter image description here
How to set up an array for audio files in HTML on Squarespace?