Code
Execute
<!DOCTYPE html> <html> <head> <title>html tutorial - autoplay attribute in html</title> <base href="../tryit/"> </head> <body> <audio controls autoplay> <source src="welcome.wav" type="audio/wav"> <source src="welcome.mp3" type="audio/mp3"> </audio> </body> </html>
Result