Audio and Video are the important elements that we use in our web pages to make them more content-rich.
The audio file formats supported by most of the browsers are: .wav, .mp3 and .ogg. Similarly the video file formats supported by most of the browsers are: .mp4 and .ogg
Tags for audio are:
Syntax:
Syntax:
Here, [controls] is the attribute to set a remote for this audio tag. The text- The browser does not support this audio will be displayed if the audio tag doesn’t work.
The other attributes are:
Tags for video are:
Syntax:
Syntax:
Here, [controls] is the attribute to set a remote for this video tag. The text- The browser does not support this video will be displayed if the video tag doesn’t work.
The other attributes are: