martin2k

The EMBED Tag

HomeForumTutorials Tags:
 
 

Name

Embedded Object

Description

This tag puts a plugin into the web page e.g. a media player ready to play music.  In order for the browser to be able to run plugins, the right software must be installed on the computer.  If the correct software is not present, a white rectangle will be displayed.  SRC is the only required attribute.

Attributes

ALIGN

Specifies the horizontal alignment of the object.  The possible values are:

Value
absbottom
absmiddle
baseline
bottom
center
left
middle
right
texttop
top

AUTOSTART

If the object is a media file, this specifies whether it should start playing automatically.  The value should be either True or False.

CONTROLLER

If set to True (default), the controls will be displayed.

CONTROLS

Specifies what is displayed on a media player.

Value Description
console Show full set of controls
pausebutton The pause button
playbutton The play button
smallconsole A smaller or limited set of controls is displayed
stopbutton The stop button
volumelever The volume control slider

LOOP

If the object is a media file, this specifies how many times the file is played.  Set to True to loop forever.

PLAYCOUNT

If the object is a media file, this specifies how many times the file is played.

SRC

Specifies the source file the plugin will load.  This also specifies what type of plugin will be used e.g. a src ending '.mid' will cause a media player plugin to be used.

To use a file on the same site use the local path e.g. src="sound.wav" or src="folder/music.mid".  You can also use dots to play a file in the parent folder e.g. src="..\beethoven.mid".  To play a file on another site, use the full URL e.g.: href="http://www.martin2k.co.uk/music.mid".

HEIGHT

The height of the applet's space on the web page in pixels.

VOLUME

A value from 0 - 100 specifying how loud to play the media file.  50 is the default.

WIDTH

The width of the applet's space on the web page in pixels.

Example

Code

<embed src="embed.mid" height="300" width="400" autostart="false">

Generates

Bibliography

http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html


Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Tuesday 03 October 2006 08:57:33 PM +0100.