HTML and CSS Reference
In-Depth Information
Name
video
Synopsis
<video> . . . </video>
Not in HTML 4.01
. Embeds a video file in the web page. The video resource can be provided
with the
src
attribute or by one or more
source
elements inside the
video
element to provide
several video format options. Other fallback content may be provided in the
video
element to
display by agents that don't support the
video
element.
Notes
There is still debate regarding the supported video formats for the
video
element. No file
format is supported by all browsers. As of this writing, browser support for available file
formats is as follows:
IE 9+
(versions prior to 9 do not support the
video
element): MP4/H.264 (MIME type needs to be
set correctly on the server for video to play), and WebM (by installing components from The We-
bM project at
www.webmproject.org
)
.
Chrome 5+:
MP4 (H.264 + AAC), Ogg Theora/Vorbis, and WebM (6+)
Firefox 3.5+:
Ogg Theora/Vorbis, and WebM (4+)
Safari 4+ and Mobile Safari 3+:
MP4 (H.264 + AAC)
Android (2.1+):
MP4 (H.264 + AAC), and WebM (2.3.3+)
Usage
Categories:
Flow content, phrasing content, embedded content, interactive content (if it has a
con-
trols
attribute), palpable content
Permitted contexts:
Where embedded content is expected