How to upload media in html

How to upload media in html

Multimedia on the web is sound, music, videos, movies, and animations.

Multimedia comes in many different formats. It can be almost anything you can hear or see, like images, music, sound, videos, records, films, animations, and more.

HTML Video

The HTML <video> element is used to show a video on a web page. To show a video in HTML, use the <video> element.

<video width="560" height="315" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""> 

<source src=""> 


HTML Audio

The HTML <audio> element is used to play an audio file on a web page. To play an audio file in HTML, use the <audio> element:

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.

The controls attribute adds audio controls, like play, pause, and volume.

The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format.

The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio>element.

Leave a Reply

Your email address will not be published.

Follow by Email
error: Content is protected !!