HTMLVideoElement

The interface for <video>. Extends HTMLMediaElement → HTMLElement → Element.

Reflected properties

All setters are guarded and throw NoModificationAllowedError on a read-only document.

Property Attribute Type Notes
width width number unset → 0.
height height number unset → 0.
poster poster string Reflects the content attribute verbatim.
playsInline playsinline boolean (presence) Reading reflects whether the attribute is present; assigning a falsy JavaScript value removes it; assigning a truthy value makes it present.

See also