Html 5 Video Tag

video tag in html-5

HTML 5 supports <video> tag also. The HTML 5 Video Tag is used for streaming videos files on the web page.

There are three video formats supported for video tag:

i. mp4
ii. webM
iii. ogg


Example:

<video controls>
  <source src=”movie.mp4″ type=”video/mp4″>
  Your browser does not support the html video tag.
</video>

Attribute’s Of HTML Video Tag:

It’s attribute are as same as audio tag.

1. controls : It defines the video controls which is displayed (as play/pause buttons).

2. autoplay : It specifies that the video will start playing as soon as it is ready.

3. loop : It specifies that the video file will start over again, every time when it is completed.


MIME Types for HTML Video format:

Video FormatMIME Type
mp4video/mp4
oggvideo/ogg
webMvideo/webM

Recommended Posts:

Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *