Skip to content
Sign upLog in

How do you get a audio file to play in the index.html?

Profile icon

i am collaborating with another user and i am wondering how you would get a audio file to play in the index.html.
where would i have to go and what would i code to get the audio to play?

You are viewing a single comment. View All
Profile icon

uhh, no. If you are doing this in HTML, do it this way:

<audio controls> <source src="Your file name"> </audio

And for the file name, do the same thing, for the HTML, just click on three dots, and all.