Agyan
adda
Run
Reset
Copy
HTML Tutorial › HTML Video › Responsive video
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<style> video { max-width: 100%; height: auto; } </style> <video controls> <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4"> </video>
Result