HTML and CSS Reference
In-Depth Information
Permitted content:
If it has a src attribute, then zero or more track elements, then transparent but with no
audio or video element descendants. If it does not have a src attribute, then zero or more
source elements, then zero or more track elements, then transparent but with no audio
or video descendants.
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
autoplay ( autoplay="autoplay" in XHTML)
Makes the media file start playing automatically.
controls ( controls="controls" in XHTML)
Indicates that the user agent (browser) should display a set of playback controls for the
media file, generally a play/pause button, a “seeker” that lets you move to a position with-
in the video, and volume controls.
crossorigin="anonymous|use-credentials"
Indicates if the user agent must check for credentials for a media file that is coming from a
URL with a different origin than the source document. The default is anonymous (no cre-
dentials needed).
height=" number
number "
Specifies the height of the video player in pixels.
loop ( loop="loop" in XHTML)
Indicates that the media file should start playing again from the beginning once it reaches
the end.
Search WWH ::




Custom Search