param (HTML element)

Spec
Depr. Empty Version
No Yes HTML 3.2
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

<param name="string" type="MIME type" value="value" valuetype=" { data | object | ref } ">

Description

The param element is used in conjunction with the applet and object elements to provide parameters or variables to the parent element.

Example

Here’s an example of an object element that contains two param elements:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
 ➥swflash.cab#version=9,0,28,0"
    width="320" height="285" title="Flash tester">
  <param name="movie" value="flash-test.swf"/>
  <param name="quality" value="high"/>
</object>

Use This For …

A typical use for the param element is demonstrated in the example above, where it’s used to pass to the object information regarding an embedded movie clip’s quality and filename. When it’s used with an applet, the param might be used to pass variables to a function that the applet uses, for example, instructing the applet to draw five polygons on the page, and to make them purple:

<applet code="draw.class">
  <param name="shape" value="triangle"/>
  <param name="amount" value="5"/>
  <param name="color" value="purple"/>
</applet>

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

Every browser listed supports this element type.

In this Section

User-contributed notes

There are no comments yet.

Related Products