tadam logo

HTML <param> Tag

Example

Add an object to an HTML page:
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">
  <param name="BorderStyle" value="1" />
  <param name="MousePointer" value="0" />
  <param name="Enabled" value="1" />
  <param name="Min" value="0" />
  <param name="Max" value="10" />
</object>
The output of the code above will be:

Definition and Usage

The <param> tag is used to define parameters or variables for an object or applet element.

Browser Support

The <param> tag is supported in all major browsers

Differences Between HTML and XHTML

In HTML the <param> tag has no end tag.

In XHTML the <param> tag must be properly closed.

Required Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
AttributeValueDescriptionDTD
namenameDefines the name for a parameter (to use in script)STF

Optional Attributes

AttributeValueDescriptionDTD
typeMIME_typeSpecifies the MIME type for a parameterSTF
valuevalueSpecifies the value of a parameterSTF
valuetypedata
ref
object
Specifies the type of the valueSTF

Standard Attributes

The tag supports the following standard attributes:

AttributeValueDescriptionDTD
ididSpecifies a unique id for an elementSTF

More information about Standard Attributes.

Event Attributes

The <param> tag does not support any event attributes.

More information about Event Attributes.

Was this information helpful?
   

Comments