Skip to content
Related Articles

Related Articles

How to specify the URL of the media file in HTML5 ?

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 26 Mar, 2021

Here we will see how to set the URL of a media file using HTML. To set the URL of media file we use <source> tag. This tag is used to attach multimedia files like audio, video and pictures. The <audio>, <video> and <picture> elements contain the <source> element.


<source src="" type="">
   // Statements



<!DOCTYPE html>
        How to specify the URL of
        the media file in HTML5?
<body style="text-align: center;">
    <h1 style="color:green;">
        How to specify the URL of
        the media file in HTML5?
    <video width="400" height="350" controls>
        <source src=


Supported Browsers:

  • Google Chrome 4.0
  • Internet Explorer 9.0
  • Firefox 3.5
  • Safari 4.0
  • Opera 10.5

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!