Web Technology - Old Questions

5. Write a HTML script to insert audio file in a HTML page? Use the controls and autoplay properties.

5 marks | Asked in Model Question

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Audio</title>

</head>

<body>

    <audio controls autoplay>

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

      Your browser does not support the audio element.

    </audio>

</body>

</html>