Safari HTML5 Audio and Video Guide – Audio, Video, & Visual Effects
Audio and Video HTML
In its simplest form, the <audio> and <video> tags require only a src attribute to identify the media, although you generally want to set the controls attribute as well, so the user can play and pause the media. The browser allocates space, provides a default controller, loads the media, and plays it when the user clicks the play button. It’s all automatic. There are optional attributes as well, such as autoplay, loop, height, and width.
Device-Specific Considerations
There are a handful of device-specific considerations you should be aware of when embedding audio and video using HTML5.