Setting the Video Size

 
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
<style>
video {
      background-color: lightgrey;
      border: medium double black;
}
</style>
</head>
<body>
      <video src="yourVideo.webm" controls preload="auto" width="600"
            height="240"> Video cannot be displayed
      </video>
</body>
</html>
  
Click to view this demo.
Home 
  HTML CSS Book 
    HTML  

video:
  1. Using the video Element
  2. Preloading the Video
  3. Displaying a Placeholder Image
  4. Setting the Video Size
  5. Specifying the Video Source (and Format)
  6. The source Element
  7. The track Element
Related: