param (HTML element)
| Depr. | Empty | Version |
|---|---|---|
| No | Yes | HTML 3.2 |
| IE5.5+ | FF1+ | Saf1.3+ | Op9.2+ |
|---|---|---|---|
| Full | Full | Full | Full |
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>
- Type
- inline element
- Contains
- Nothing—empty element
- Contained by
applet,object
Description
The
param element is used in conjunction with the
applet and object elements to provide parameters or variables to the parent
element.
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
| IE | 5.5 | Full |
|---|---|---|
| 6.0 | Full | |
| 7.0 | Full | |
| Firefox | 1.0 | Full |
| 1.5 | Full | |
| 2.0 | Full | |
| Safari | 1.3 | Full |
| 2.0 | Full | |
| 3.0 | Full | |
| Opera | 9.2 | Full |
| 9.5 | Full |
Every browser listed supports this element type.
In this Section
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

