Тег <video></video>




Этот тег определяет видео.



Аргумент Значение
autoplay autoplay
controls controls
height pixel
loop loop
muted muted
poster URL
preload auto
metadata
none
src URL
width pixel


Кодек Internet Explorer Chrome Opera Safari Firefox
ogg/theora

×

×

H264(mp4)

×

×




index.html
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  • </head>
  • <body>
  •  <video width="480" height="360" preload="auto" controls="controls">
  •   <source src="video/a.mp4" type="video/mp4" />
  •   <source src="video/a.ogv" type="video/ogg" />
  •  </video>
  • </body>
  • </html>
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  • </head>
  • <body>
  •  <video width="480" height="360" preload="auto" controls="controls">
  •   <source src="video/a.mp4" type="video/mp4" />
  •   <source src="video/a.ogv" type="video/ogg" />
  •  </video>
  • </body>
  • </html>