HTML audio: Difference between revisions

Content deleted Content added
m Reverted edit by 196.189.123.217 (talk) to last version by Augmented Seventh
No edit summary
Tags: references removed Visual edit Mobile edit Mobile web edit
Line 1:
{{Short description|HTML element}}
<ref name="safari_html5">{{Cite web |title=Resources – Safari |url=https://developer.apple.com/safari/resources/ |access-date=2022-11-18 |website=Apple Developer |language=en}}</ref>'''HTML audio''' is a subject of the [[HTML]] specification, incorporating audio input, playback, and synthesis, all in the browser.
 
== &lt;audio&gt; element ==
The {{tag|audio|o}} [[HTML element#Elements vs. tags|element]] represents a sound, or an audio stream.<ref>{{Cite web |url=http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element |title=HTML5 audio element – W3C |access-date=2013-07-02 |archive-url=https://web.archive.org/web/20130606104953/http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element |archive-date=2013-06-06 |url-status=dead }}</ref> It is commonly used to play back a single audio file within a web page, showing a GUI widget with play/pause/volume controls.
 
The {{tag|audio|o}} element has these attributes:
Line 18:
* src = non-empty [URL] potentially surrounded by spaces<br />The URL for the audio stream.
 
Example:
Example:<ref>{{Cite web|url=https://www.w3.org/wiki/HTML/Elements/audio|title = The Embed Audio element – HTML: HyperText Markup Language &#124; MDN}}</ref>
 
=== Supporting browsers ===
On PC:
* [[Google Chrome]]
* [[Internet Explorer 9]]
* Firefox 3.5
* [[Firefox 3.5]]<ref name="firefox_html5">{{Cite web|url=https://website-archive.mozilla.org/www.mozilla.org/firefox_releasenotes/en-us/firefox/3.5/releasenotes/|title = Firefox Notes - Desktop}}</ref>
* [[Opera (web browser)|Opera]] 10.5
* [[Google]]
* Safari 3.1
* [[Safari (web browser)|Safari]] 3.1<ref name="safari_html5">{{Cite web|title=Resources – Safari|url=https://developer.apple.com/safari/resources/|access-date=2022-11-18|website=Apple Developer|language=en}}</ref>
On mobile devices:
* [[Android Browser]] 2.3
*
* [[Google Chrome]]
* [[Internet Explorer Mobile]] 9
* Safari 4
* [[Safari (web browser)|Safari]] 4<ref name="safari_html5" />
* [[Firefox]]
* [[Opera Mobile]] 11
 
== Supported audio coding formats ==