HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

data


HTML5 Tags to Play Media


HTML5 introduces the audio and video elements, which do away


with the need for plug-ins or media players to listen to music or watch videos


via a Web browser.


The video element enables you to incorporate videos in HTML


documents using minimal code. The structure for embedding video is simple.


The following is an example of the markup for adding an MP4 file to a Web


page:


<!DOCTYPE html>





Video Test





The audio element enables you to incorporate audio, such as music

Free download pdf