November 21, 2026 How can you insert a video file into an HTML webpage? Inserting a video file in HTML file is quite easy now. You can include video file through tag. <embed> tag's src attribute required the path of video file which you want to include in webpage. Example is mentioned below: Example <embed src="myvedio.swf" /> Above mentioned example appear different on your user's browser because it depends on the media player which is installed at user's computer. Attribute Description Width You can set width of media player. Syntax is mentioned below: width="200" Height You can set height of media player. Syntax is mentioned below: height="200" Hidden You can set hidden attribute's value true and false. If you do not want to show media player then set this attribute as true else false. Syntax is mentioned below: Hidden='true' or Hidden='false' Autostart Through this attribute you can start media player automatically after loading the webpage. If you set this attribute true then media player will start automatically, syntax is mentioned below: Autostart='true' If you do not want to start media player automatically set this attribute as false, syntax is mentioned below: Autostart='false' Loop If you want to repeat your video file automatically after completing then set this attribute at 'true' else set as 'false'. Syntax is mentioned below: Loop='true' or Loop='false' Volume You can set default volume of your media file. You can set value between 0 - 100. Syntax is mentioned below: Volume='60' FAQ 1. Which attribute is used to specify the video file path in HTML? The src attribute specifies the location of the video file. You can provide a relative file path or a complete URL to identify the video resource. 2. Which video formats are supported by HTML? Common video formats used with HTML include MP4, WebM, and Ogg. Browser compatibility depends on the video container and the codecs used inside the file. MP4 with H.264 video is a widely supported option. 3. How can I make an HTML video play repeatedly? You can use the loop attribute inside the video element. When the video reaches the end, the browser starts playing it again automatically.