1.

What is the work of src?(a) audio starts playing automatically(b) play again after finishing the audio(c) specify the path to an audio file(d) insert more than one audioThis question was addressed to me in an interview for job.This intriguing question originated from Audio and its MIME Types topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer» CORRECT option is (c) SPECIFY the path to an audio FILE

The explanation is: src attribute basically SPECIFIES a path to the audio file. It is also used by element which indicates where the audio file is located. Autoplay attribute starts playing audio automatically, loop plays audio again after it FINISHES.


Discussion

No Comment Found

Related InterviewSolutions