XHTML » Tags » param

Syntax:
<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.
 

Examples

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<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:
Explanation:

This example demonstrates that even a simple Microsoft Active-X button can have numerous parameters.

Language(s): XHTML

See Also: