HTML Multimedia

Last Updated:

HTML Multimedia

HTML provides various multimedia tags that allows you to add multimedia files on your website. These tags include

  • <audio> - Used to add audio files to an HTML document.
  • <video> - Used to add video files to an HTML document.
  • <embed> - Used to add an external application or interactive content such as Flash-based object into an HTML.
  • <object> - Used to embed an object in an HTML document. An object can be an audio, video, ActiveX, PDF, Flash Java items that are handled by browser plugins.

HTML audio

The <audio> tag is used to add audio files to an HTML document.

Note: The <audio> tag may contain one or more audio <source> using <source> element: the browser will choose the most suitable one.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <audio controls> <source src="/mario.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> </body> </html>

HTML video

The <video> tag is used to add video files to an HTML document.

Note: The <video> tag may contain one or more audio sources using source element: the browser will choose the most suitable one.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <video width="350" height="250" controls> <source src="/reindeer.mp4" type="video/mp4"> Your browser does not support the video tag. </video> </body> </html>

Share this Page

Meet the Author