width property
Gets or sets the width of the video element.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: number
The width of the video element.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.6
See also
- video element
- video object
- How to use HTML5 to play video files on your webpage
- Make your videos accessible with Timed Text Tracks
Show:

