Advertisements
Advertisements
Question
Which are the ways to add an audio file in a web page?
Options
Linking via <A>
Embedding via <EMBED>
Embedding via <VIDEO>
All of these
MCQ
Advertisements
Solution
Linking via <A> and Embedding via <EMBED>
Explanation:
An audio file can be linked using the <A> (anchor) tag as shown below:
<A HREF = "audio.mp3"> Click to Play </A>
An audio file can also be embedded directly into a web page using the <EMBED> tag:
<EMBED SRC = "audio.mp3" WIDTH = "100" HEIGHT = "50" AUTOSTART = "TRUE" LOOP = "TRUE">
The <VIDEO> tag is used to insert and play video files within an HTML page.
shaalaa.com
Is there an error in this question or solution?
