HTML <param>
Tag
Topic: HTML5 Tags ReferencePrev|Next
Description
The <param>
(short for parameter) tag defines parameters to be passed to an embedded object at run-time defined by the <object>
tag.
Any number of <param>
elements may appear inside an <object>
element, in any order, but must be placed at the start of the content.
The following table summarizes the usages context and the version history of this tag.
Parent: | <object> , <applet> |
---|---|
Content: | None. It is an empty element. |
Start/End Tag: | Start tag: required, End tag: forbidden |
Version: | HTML 3.2, 4, 4.01, 5 |
Syntax
The basic syntax of the <param>
tag is given with:
Note: In HTML, the end tag for the <param>
tag is forbidden. In XHTML, the <param>
tag must be closed with a trailing slash, like this: <param />
.
The example below shows the <param>
tag in action.
Example
Try this code »<object type="application/x-shockwave-flash">
<param name="movie" value="video/blur.swf">
</object>
Tag-Specific Attributes
The following table shows the attributes that are specific to the <param>
tag.
Attribute | Value | Description |
---|---|---|
Required — The following attribute must be specified on this tag for the markup to be valid. | ||
name |
text | Specifies the name of the parameter. |
Optional — The following attributes are optional. | ||
value |
text | Specifies the value of the parameter. |
type |
content type | Obsolete Specifies the type of the value attribute. |
valuetype |
data |
Obsolete Specifies the type of the value attribute. |
Global Attributes
Like all other HTML tags, the <param>
tag supports the global attributes in HTML5.
Event Attributes
The <param>
tag also supports the event attributes in HTML5.
Browser Compatibility
The <param>
tag is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML Audio, HTML Video.
Related tag: <object>
.