Go to main content
Bypass navigation bar HTML Reference HTML Tags HTML Tutorials
Bypass language selection
Bypass location bar

Location: Home > HTML Reference > HTML Tags > HTML param tag

Bypass main content

HTML param tag

Note: If you don't know what an element/tag is and/or how you must use it we recommend you to read our HTML tags and attributes tutorial that you can find in our HTML tutorials section.

Bypass main content

Description

The HTML param element is used define variables for external applications (inserted using the HTML object element) like applets, flash movies, etc. These variables are supposed to be accessed and understood by the object's implementation.

For example, param variabled can define the quality in a flash movie or the initial time in a clock applet.

A "param" variable is basically defined usign the "name" and "value" attributes. This way a variable recives a name through which it can be identified by the program and provide its value.

Examples

In the following example two flash movies are inserted using the HTML object element. Different values are given to the same variables in each movie to see how this affects the object. For example, the first movie doesn't loop and shows a basic menu when the user right-clicks the movie, while the second provides a full menu.

Code
<object data="/img/button.swf" type="application/x-shockwave-flash" width="88" height="31">
<param name="quality" value="low" />
<param name="loop" value="false" />
<param name="menu" value="false" />
</object>
<object data="/img/button.swf" type="application/x-shockwave-flash" width="88" height="31">
<param name="quality" value="high" />
<param name="loop" value="true" />
<param name="menu" value="true" />
</object>
View

Attributes

id (name)

The "id" attribute assigns an identifier to the associated element. This identifier must be unique in the document and can be used to refer to that element in other instances (e.g., from client-side scripts).

<p id="paragraph1">This is the first paragraph, named "paragraph1". To dynamically change its properties use this identifier.</p>

name (cdata)

This attribute provides a name to the variable that's supposed to be known by the application. The case-sensitivity requirement of this value depends on the application.

<param name="width" value="200" />

value (cdata)

The "value" attribute assigns a value to the variable. The value syntaxis depends on the application's requirements.

<param name="hour" value="5" />

valuetype

Specifies the type of the data in the "value" attribute. Possible values are:

  • data: the value is passed to the object as a string. This is the default value.
  • ref: the value is a URI pointing to a resource with values definitions. The URI must be passed as is, i.e., unresolved.
  • object: the value refers to the "id" attribute of another object declaration present in the document.
<param name="time" value="http://www.example.com/clock/vars/time.php" valuetype="ref" />

type (content-type)

When the value of the "valuetype" attribute is set to "ref", this attribute specifies the type of the resource pointed in the "value" attribute.

<param name="time" value="http://www.example.com/clock/vars/time.php" valuetype="ref" type="text/html" />

Events

This element doesn't support events.

See a complete list and information about events in HTML.

Diseño y desarrollo: Latitud29.com

Links and logos|Contact|Beyond HTML|Tools and resources|Sitemap|Webmaster|Donate