<video> Tag Attributes
Attributes of the <video> tag
global attributes | In addition to the personal attributes of the <video> tag below, any of the common HTML attributes can also be coded. |
width, height | |
src | a URI reference that resolves to the URL of the video resource Use percent escape codes as explained in the URL Encoding Tutorial for any special characters in the URI reference. If the value of the
If the protocol scheme, username, host name/IP address and port number are omitted the default is the current host - the same server as the base of the current document. If the path starts with a slash |
poster | a URI reference that resolves to the URL of a two-dimensional image resource The poster is displayed as a preview of the video when the video is not being played. Use percent escape codes as explained in the URL-encoding tutorial for any special characters in the URI reference. If the value of the
If the protocol scheme, username, host name/IP address and port number are omitted the default is the current host - the same server as the base of the current document. If the path starts with a slash |
autoplay="autoplay" | |
controls="controls" | |
loop="loop" | |
preload="none" preload="metadata" preload="auto" |
HTML Media Events
oncanplay | |
oncanplaythrough | |
onemptied | |
onended | |
onerror | |
onloadeddata | |
onloadedmetadata | |
onloadstart | |
onpause | |
onplaying | |
onprogress | |
onratechange | |
onreadystatechange | |
onseeked | |
onseeking | |
onstalled | |
onsuspend | |
ontimeupdate | |
onvolumechange | |
onwaiting |