So creating your own controls ensures a consistent look for the controls across all browsers. The same goes for the Video Control (which wont be discussed in this article). However, that can be a good approach, because the default controls look different among various browsers. The HTML5 Audio control presents a standard way to play audio. If you don't specify this attribute, no controls will appear - and you will instead have to create your own controls and program their functionality using the Media API (see below). The controls attribute on the element is specified when we require the browser to provide us with default playback controls.In this case, we've provided a simple paragraph including a link to download the audio directly. An uncontrollable HTML5 audio player means a terrible user experience. So the ideal place to create a fallback or inform of incompatibility is before the closing tag. However, any supported text or elements that you define within will be displayed or acted upon. Use of audio The HTML
0 Comments
Leave a Reply. |