CODE EDITOR
TEST TIME Write a program to reverse a string in JavaScript // Program to reverse a string
Program:
<!DOCTYPE html>
<html>
<body>
<h2>Listen to this Audio</h2>
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
Explanation:
<audio> inserts an audio player.controls attribute adds playback controls.<source> specifies the audio file and its type.<audio> is displayed if the browser doesn't support audio playback.
What does the <audio> tag do?
<audio> tag is used to embed sound content in an HTML document. It can contain one or more <source> tags that specify the audio sources to be embedded.What is the purpose of the controls attribute in the <audio> tag?
controls attribute is a boolean attribute that, when present, displays audio controls like play, pause, and volume to the user.What does the <source> tag represent in the <audio> tag?
<source> tag is used to specify multiple media resources for media elements, such as <audio>. It has two main attributes: src, which specifies the URL of the audio file, and type, which specifies the MIME type of the audio file.What is the text within the <audio> tag for?
<audio> tag is displayed to users in browsers that do not support the <audio> element. This can be used to provide a message like “Your browser does not support the audio element.”How can I change the audio file in the HTML code?
src attribute in the <source> tag to the URL or path of the new audio file you want to embed.Can I add multiple audio sources to the <audio> tag?
<source> elements inside an <audio> element. The browser will use the first recognized format.
Comments
Post a Comment