HTML and CSS Reference
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.
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.
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-
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