Thursday, 2 June 2011

How to Play a Movie or a Sound File in HTML


Music is inserted onto a web page with the use of the embed tag. There are other ways to link to music, but embed is now considered the standard for inserting media. Below is a minimalist example of the embed tag using the src attribute to define the media file's location.  You can also define width and height of the media player.

<body>
<embed src="e:\clock.avi" autostart="true" loop="true"
volume="60"  height=”360” width=”165”/>
</body>

No comments:

Post a Comment