<audio controls>
<source src="file.ogg" type="audio/ogg">
<source src="file.mp3" type="audio/mpeg">
</audio>

, 3.<source src="file.mp3" type="audio/mpeg">, 4.

All of these.

">
linked linked linkedin whatsapp remove
Feedback

HTML 5 Quiz HTML 5

Which of the following is the correct way to play an audio file in HTML5?

var snd = new Audio("file.wav"); snd.play();

<audio controls>
<source src="file.ogg" type="audio/ogg">
<source src="file.mp3" type="audio/mpeg">
</audio>

<source src="file.mp3" type="audio/mpeg">

All of these.

Answer:
var snd = new Audio("file.wav"); snd.play();

<audio controls>
<source src="file.ogg" type="audio/ogg">
<source src="file.mp3" type="audio/mpeg">
</audio>


Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

Related HTML 5 Questions and Answers:

QUIZACK

Evaluate your skill level in just 10 minutes with QUIZACK smart test system.

Copyright © 2021 Quizack . © 2021 All rights reserved