HTML Multimedia

You are Here:

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>

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author