Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

An audio player with two source files. The browser needs to choose the source file it supports (if both are supported, either can be chosen):

<

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

Try it »


Browser support

The numbers in the table indicate the first browser version that supports the tag.

tag
4.0 9.0 3.5 4.0 10.5

Tag Definition and Usage Notes

The tag defines media resources for media elements (such as