What are Audio/Video tags in HTML?

Audio tag is used to embed sound content on a document such as music or other audio streams. The audio tag contains one or more source tag with different audio sources.

There are three supported audio formats in HTML

  • MP3
  • WAV
  • OGG

The video tag is used to embed the video content in a document such as movie clip or other video streams. **<video></video>**

The track tag specifies the text track for audio and video elements, this element is used to specify subtitle, caption files or other files containing text that should be visible when the media is playing. The tracks are formatted in WebVTT format ( .vtt files )