HTML <video> width Attribute

❮ HTML <video> tag

Example

<video width="340" height="260" controls>
  <source src="video.mp4" type="video/mp4">
  <source src="video.webm" type="video/webm">
  Your browser does not support the video tag.
</video>

Meaning

The width attribute specifies the video display area, in CSS pixels.


Standard Syntax

<video width="pixels">...</video>



Browser Support




Status







Attribute Values

Value Description
pixels Specifies width of the video. (ex: width="100")
❮ HTML <video> tag