<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.

">
MCQs > IT & Programming > HTML 5 > Which is the correct way to play an audio file in HTML5?

HTML 5 MCQs

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

Answer

Correct Answer:

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

Explanation:

Note: This question has more than 1 correct answers

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

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it