HTML <param> tag

The <param> tag is used to set the settings for an object that is placed on a webpage using the <object> tag. Settings such as if it should start playing automatically (for audio objects), if their should be a control panel (for video objects), the location of the file, and more.

NOTE: The <param> tag should be placed inside of the <object> tag that you are declaring settings for.

Attributes

Attribute Description Possible values
name Required. Sets a name for a parameter paramName
type Specifies the MIME type of the URL set for the value attribute. Used only when the valuetype attribute is set to "ref" mimeType
value Sets the value of a parameter paramValue
valuetype Specifies the type of the value that you gave the value attribute data (string data (default)), ref (resource URL), object (an object located in the same document)

Standard attributes

id

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

NONE

For more information on event attributes, check out our HTML event attributes reference page.

Example

<object width="320" height="265"> <param name="movie" value="http://www.youtube.com/v/nQC2Ib5FtcE&hl=en_US&fs=1"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> </object> See the video: <a href="http://www.youtube.com/watch?v=nQC2Ib5FtcE" target="_blank">Deer drinking water</a> </object>
Output if the object loads:
Output if the object doesn't load:
See the video: Deer drinking water

Tips & notes

You can place alternative content (including other objects) between the <object> and </object> tags that will be displayed if the object does not load.

Don't use the <object> tag for images, the HTML <img> tag should be used for images.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation