English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Encyclopedia

HTML: <param> tag

HTML <param> element defines parameters for <object> element

Online Example

Set the parameter "autoplay" to "true", the audio will play automatically after loading:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial(oldtoolbag.com)</title> 
</head>
<body>
<p><b>Attention:</b> Internet Explorer 8and earlier versions do not support .wav files. Try renaming the file to "horse.mp3" to check the use of this example in the IE version.</p>
<object src="horse.wav">
<param name="autoplay" value="true">
</object>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

<param> tag is supported by most mainstream browsers. However, the file format defined by <object> is not supported by all browsers.

Tag definition and usage instructions

<param> element allows you to specify the run for the object inserted into the XHTML document-time setting, that is to say, this tag can be used for the object it contains <object> or <applet> tags provide parameters.

in HTML 4.01 versus HTML5 differences

HTML 4.01 Attributes: "type" and "valuetype", in HTML5 Not supported in Chinese.

Differences Between HTML and XHTML

In HTML, the <param> tag does not have a closing tag.

In XHTML, the <param> tag must be closed correctly.

Attribute

AttributeValueDescription
namenameDefine the name of the parameter (used in scripts).
typeMIME_typeHTML5Not supported. Define MIME type parameter.
valuevalueDescribe the parameter value.
valuetypedata
 ref
 object
HTML5 Not supported. Describe the type of the value.

global attributes

<param> tag supports global attributes, see the complete attribute table HTML Global Attributes.

event attributes

<param> tag supports all HTML Event Attributes.