English

Which are the ways to add an audio file in a web page?

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?
Chapter 5: HTML- III: Audio, Video and Forms - Assisted Practice [Page 228]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 3. | Page 228
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×