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; writing false removes it, any other value sets it present. |
See also
- Element —
getAttribute/setAttribute, content,classList, traversal, insertion - HTMLMediaElement — inherited reflected properties
- JavaScript DOM API — the interface hierarchy and
instanceof