applet tag
object tag
TAG: param
<param ... />
The
<param>
tag is used to set the name/value pair that provides a parameter required by a Java object in an
applet
tag or by some object in an
object
tag. Each
param
tag can provide only one parameter. However, there can be any number of parameters (from zero to many). These parameters, including the name and acceptable range of values (defaults, etc.), are established by the author of the applet or object. For example, they could set the color of the applet.
This tag is placed immediately after the opening
applet
or
object
tag.
This tag is self-closing tag. The blank space before the slash (/) is recommended for maximum browser compatibilty.
Attributes and Events
id
name
The
name
attribute is the name portion of the name/value pair. You must provide a value for this attribute. The exact value (spelling, etc.) of the
name
will be determined by the author of the object.
type
The
type
attribute defines the MIME media type of the value when the
valuetype
attribute is set to
ref
.
value
The
value
attribute provides the value required by the parameter for the name/value pair. You must provide a value for this parameter.
valuetype
The
valuetype
attribute defines the type of the value. There are three permitted values
data, object,
and
ref
. The default is
data
. The
ref
is the URL source that contains the value.
This example demonstrates that even a simple Microsoft Active-X button can have numerous parameters.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="eng">
<head>
<title>DevGuru XHTML param Tag Example</title>
</head>
<body>
<object id="CommandButton" classid="CLSID:D7053240-CE69-11CD-A777-00DD01143C57" style="width:200pt; height:25pt;">
<
param name="Caption" value="Command Button" /
>
<
param name="FontEffects" value="1073741825" /
>
<
param name="FontHeight" value="200" /
>
<
param name="FontCharSet" value="0" /
>
<
param name="FontPitchAndFamily" value="2" /
>
<
param name="FontWeight" value="700" /
>
<
param name="ParagraphAlign" value="3" /
>
<
param name="Size" value="2540;847" /
>
</object>
</body>
</html>
Output:
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information