Monday, October 7, 2019

HOW TO INSERT AUDIO IN HTML

How to Insert Audio in HTML 

The <audio> tag defines sound, such as music or other audio streams.

In HTML To insert Audio  to your HTML code use the given tag below...



Source code :

<audio src="info.mp3" autoplay="true" controls></audio>

Output :

Audio Syntax

               The <audio> element defines an in-browser audio player. The audio player can provide a single piece of audio content. To specify the source file of the audio content, use one or more <source> elements inside the <audio> element. All <source> files should contain the same audio content, but in different file formats. The browser will select the first file format that it is able to play. (So order them according to your preference.) If you are not going to provide multiple source file formats, you may indicate the source file in the src attribute, instead of in a separate <source> element.

Yash Talaiche

Author & Editor

Yash Talaiche , Python Developer |PHP|CSS|HTML|SQL|DJANGO|AUTONATION , Working on Django and Flask

0 comments:

Post a Comment