Skip to content
Sign upLog in

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

Profile icon
Dominicl645

i am collaborating with another repl.it 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
RedPandaCode

Since you uploaded the file into repl, if nothing else works, try swapping the "src" attribute for an "href" attribute

<audio href="filename" controls>