Ask coding questions

← Back to all posts
Playing Music in HTML (or Javascript)
CodingElf66

Playing Music in HTML (or Javascript)

Is it possible? Because one of my projects need audio, but HTML and/or Javascript music sounds way more smooth compared to replit.audio, so can anyone please help?

Answered by sn236 [earned 5 cycles]
View Answer
Voters
CodingElf66
Comments
hotnewtop
sn236

This will add a audio box, where the user has controls
Here is some more info - w3schools

CodingElf66

@sn236 I want to play music without any controls, what do I do?

sn236

@CodingElf66 Well, there was a tag called <bgsound>, but now it's only available on Internet explorer read this - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bgsound

CodingElf66

@sn236 ty!

sn236

@CodingElf66 welcome