Home  »  HTML   »   video

It can display a video file on the browser.Video is an HTML5 element that creates a media player without any plugin.

autoplay

the video will start automatically as soon as the page loads.

  • none
controls

the browser will display the video controls such as stop, play, pause, etc.

  • none
crossorigin

to use Cross-Origin Resource Sharing to fetch the related video file.

  • anonymous - the element will not have the credentials flag set.
  • use-credentials - the element will have the credentials flag set.
height

represents the height of the video display area.

  • pixels
loop

once the video ends it will again start playing automatically.

  • none
muted

the video will be mute initially when the page loads.

  • none
poster

represents URL of an image to be shown while the video is downloading

  • URL
preload

represents how much time will be taken to load video after page loads.

  • none - the browser will not load the video when the page loads
  • metadata - the browser will load only metadata when the page loads
  • auto - the browser will load full video when the page loads
src

represents the URL from which the video is embedded.

  • URL
width

represents the width of the video display area.

  • pixels

HTML video Example:
Edit Example