<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Custom styling for <audio>
Ref: https://stackoverflow.com/questions/4126708/is-it-possible-to-style-html5-audio-tag
audio::-webkit-media-controls-panel {}
audio::-webkit-media-controls-mute-button {}
audio::-webkit-media-controls-play-button {}
audio::-webkit-media-controls-timeline-container {}
audio::-webkit-media-controls-current-time-display {}
audio::-webkit-media-controls-time-remaining-display {}
audio::-webkit-media-controls-timeline {}
audio::-webkit-media-controls-volume-slider-container {}
audio::-webkit-media-controls-volume-slider {}
audio::-webkit-media-controls-seek-back-button {}
audio::-webkit-media-controls-seek-forward-button {}
audio::-webkit-media-controls-fullscreen-button {}
audio::-webkit-media-controls-rewind-button {}
audio::-webkit-media-controls-return-to-realtime-button {}
audio::-webkit-media-controls-toggle-closed-captions-button {}
<figure>
<figcaption>Listen to the T-Rex:</figcaption>
<audio
controls
src="/media/cc0-audio/t-rex-roar.mp3">
Your browser does not support the
<code>audio</code> element.
</audio>
</figure>
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>
<audio src="/test/audio.ogg">
<p>Tu navegador no implementa el elemento audio.</p>
</audio>
<audio controls>
<source src="sound.ogg" type="audio/ogg"/>
<source src="sound.mp3" type="audio/mpeg"/>
</audio>
this will also work in react js & html
<audio controls>
<source src="demo.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<video src="http://v2v.cc/~j/theora_testsuite/320x240.ogg" controls>
Tu navegador no implementa el elemento <code>video</code>.
</video>
Code Example |
---|
Html :: change button color in html |
Html :: creating a table in html |
Html :: ng for |
Html :: registration form bootstrap |
Html :: difference between tag and element |
Html :: how do you add an image in html |
Html :: href tag in html |
Html :: a tag download csv save download |
Html :: html input invalid |
Html :: pop up animation css |
Html :: livewire file upload |
Html :: vs code basic html template shortcut |
Html :: %20 in html |
Html :: html code heavy left arrow |
Html :: ion select |
Html :: loading screen svg and css animation |
Html :: html variables |
Html :: lorem ipsum shortcut |
Html :: tailwind css width 50 percent |
Html :: how to make squares in html |
Html :: random user image url |
Html :: HTML <header element |
Html :: multi item slider html css |
Html :: html with emoji |
Html :: include in the price html woocommerce |
Html :: react font color |
Html :: html5 structure |
Html :: background color change |
Html :: cara membuat persegi di html |
Html :: html textarea unscalable |