Skip to: content, navigation

by Ian Lloyd

param (HTML element)

Spec
Depr. Empty Version
No Yes HTML 3.2
Browser support full matrix
IE5.5+ FF1+ Saf1.3+ Op9.2+
Full Full Full Full
<param name="string" type="MIME type"  value="value"valuetype=" { data | object | ref } ">

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

IE5.5Full
6.0Full
7.0Full
Firefox1.0Full
1.5Full
2.0Full
Safari1.3Full
2.0Full
3.0Full
Opera9.2Full
9.5Full

Every browser listed supports this element type.

In this Section

Related Reading

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.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters