Answers for "audio element in html"

1

audio in html

<audio controls>
<source src="sound.ogg" type="audio/ogg">
<source src="sound.mp3" type="audio/mpeg">
No audio support.
</audio>
Posted by: Guest on August-05-2021
0

how to add audio in html

<audio controls>

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

  <source src="flag.mp3" type="audio/mpeg">
  
</audio>
Posted by: Guest on April-02-2021
2

audio html tag

MIME Types for Audio Formats
Format	MIME-type
MP3		audio/mpeg
OGG		audio/ogg
WAV		audio/wav

If simply audio '<audio>' tag is written then audio controls will not appear on the web page.
and for showing audio controller we need to write controls attribute in audion tag '<audio controls>'.

Example
<audio controls>
  <source src="horse.mp3" type="audio/mpeg">
</audio>
Posted by: Guest on April-12-2020
0

html5 audio

<audio src="/test/audio.ogg">
<p>Tu navegador no implementa el elemento audio.</p>
</audio>
Posted by: Guest on January-08-2021

Browse Popular Code Answers by Language