Video has been widely popular on the Web, but its format is almost exclusively proprietary. YouTube uses Flash, Microsoft uses Windows Media®, and Apple uses QuickTime. The tags used to embed the content in one browser are not valid in another browser. Therefore, WhatWG proposed to introduce a new video element, used to embed any video format. For example, you can embed the following code in my QuickTime movie “a Sora in Prospect Park”:
<Video src = “http://www.cafeaulait.org/birds/sora.mov” />
There is still controversy as to which format and decoder should be preferred. May strongly recommend or require the use of Ogg Theora. It can also optionally support proprietary formats such as QuickTime and MPEG-4, and other proprietary formats. The actual format used is likely to be determined by the market, as is the case with GIF, JPEG, and PNG formats, which overwhelm competitors such as BMP, X-Bitmap, and JPEG 2000 as the preferred format for the img element.
It is also proposed to introduce the audio element. For example, you can use the following code to add background music to a Web page:
<Audio src = “spacemusic.mp3” autoplay = “autoplay” loop = “20000” />
The autoplay property instructs the browser to start playing immediately after loading the page without waiting for an explicit user request. The audio loop plays 20,000 times and then stops (or stops when the user closes the window or goes to another page). Of course, browsers can (and should) allow users to turn off embedded media, and should not just do what the page author requires.
Browser must support WAV format, can also support other formats such as MP3.
Because older browsers do not support these elements, and they do not make sense for blind and deaf users, the audio and video elements can contain additional tags that describe the content of audio and video. This is also helpful for search engines. Ideally, these tags are full text versions of audio and video content. For example, Listing 8 shows John F. Kennedy’s inaugural address written in HTML 5.
Vice President Johnson, Mr. Speaker, Mr. Chief Justice,
President Eisenhower, Vice President Nixon, President Truman,
Reverend Clergy, fellow citizens:
We observe today not a victory of party, but a celebration of
freedom — symbolizing an end, as well as a beginning —
signifying renewal, as well as change. For I have sworn before
you and Almighty God the same solemn oath our forebears
prescribed nearly a century and three-quarters ago.
The world is very different now. For man holds in his mortal
hands the power to abolish all forms of human poverty and all
forms of human life. And yet the same revolutionary beliefs for
which our forebears fought are still at issue around the globe —
the belief that the rights of man come not from the
generosity of the state, but from the hand of God.