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
Post a Comment