How to create programming of HTML of audio and video? Source Code for Audio and Video

 How to create programming of HTML of audio and video? Source Code for Audio and Video 


How to create programming of HTML of audio and video? Here , We are sharing Source Code for Audio and Video So, that you can attach this code in your project without searching on interntet 


How to Write Source code for Audio in HTML 


<audio controls>

  <source src="thinkforu.ogg" type="audio/ogg">

  <source src="thinkforu.mp3" type="audio/mpeg">

Your browser support the audio element.

</audio>



>> 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.




How to write source code for Video in HTML


<video width="1280" height="720" controls>

  <source src="thinkforumovie.mp4" type="video/mp4">

  <source src="thinkforumovie.ogg" type="video/ogg">

Your browser does not support the video tag.

</video>


>> The controls attribute adds video controls, like play, pause, and volume.


>> It is a good idea to always include width and height attributes. If height and width are not set, the page might flicker while the video loads.


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


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

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

How to use autoplay and mute attribute with < video > tag in HTML for youtube ? with example

How to use Local Variable for whose values are present till function is executing in solidity ?

How to add Amazon website inside iframe?

How to use comments in Solidity programming language ?

How to use string in Solidity programming language ?

How to use arrays in Solidity programming language ?