Logo
HTMLCSSJavaScriptReactjsnewContactUpdates

Get started today

HTMLCSSJavaScriptReactjsnewContactUpdates

Tools

Resume BuilderQR GeneratorVS Code Editor

Connect

GitHubWhatsApp Channel
iframe
audio tag

HTML Video Tag

By Saket Bhatnagar•June 13, 2025•Beginner to Intermediate

Table of Contents

  1. video tag
  2. Attributes of video tag

video tag

  1. 1The <video> tag was introduced in HTML5.
  2. 2The <video> tag is used to embed or attach video to a web page.
  3. 3It is a container tag.
  4. 4It is block level element.
  5. 5To mention the path of video we have to use <source> tag(Source tag is a non container tag.)
  6. 6In <source> tag we have to use 'src' attribute in which path of video will be provided.(Syntax:- <source src='path-of-video'>
  7. 7We can provide multiple sources using multiple <source> tags.
  8. 8The content written within <video> tag will be displayed when <video> tag is not supported by the browser.
  9. 9Syntax:- <video> <source src='path-of-video'> <source src='path-of-video'> Video tag is not supported by the browser. </video>

Attributes of video tag

  1. 1Controls :- It is used to enable the controls of the video like play,pause,volume control, etc.
  2. 2Autoplay :- It is used to automatically play the video when the page is loaded.
  3. 3Loop :- It is used to play the video continuously in a loop i.e, when the video ends it is started again automatically.
  4. 4Muted :- It is used to mute the audio of video.
  5. 5Poster :- It is used to apply cover image or technically called as poster to the video before the video plays.
  6. 6Width :- It is used to specify the width of the video element.
  7. 7Height :- It is used to specify the height of the video element.

Share this article

Last updated: July 13, 2025

Join Our Community

Login to Join

© 2025 Saket Bhatnagar. All rights reserved.

    ☕