Embedding a video file

The procedure for embedding video files by using the <embed> is similar to one for audio files. The syntax of this tag is:

<embed src="URL" width="value height="value" align="value" autostart="startvalue">

where URL is the filename and location of the embedded object, and the width and height attributes define the size of the embedded object on the Web page (you need to set the size large enough to display the necessary controls for the user to play the media clip). Typically the size is defined by trial and error.

The autostart attribute is used to define whether or not the browser starts the embedded clip automatically when the Web page is loaded. This attribute can take on values true or false.

Example:

<embed src="dino2.avi" width="200" height="200" autostart="false" />

Try how it works: