Latest web development tutorials

HTML <param> tag

Examples

Setting parameters "autoplay" is "true", after loading the audio will play automatically:

<object data="horse.wav">
<param name="autoplay" value="true">
</object>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

<Param> tag supports most major browsers. However, <object> defined file format is not supported by all browsers.


Tag definitions and instructions

<param> element allows you to insert XHTML document object specifies the run-time settings, that is, the label may contain its <object> or <applet> tag with parameters.


The difference between HTML 4.01 and HTML5 in

HTML 4.01 attributes: "type" and "valuetype", are not supported in HTML5.


Differences Between HTML and XHTML

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

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


Attributes

属性 描述
name name 定义参数的名称(用在脚本中)。
type MIME_type HTML5不支持。定义 MIME 类型参数。
value value 描述参数值。
valuetype data
ref
object
HTML5 不支持。描述值的类型。


Global Properties

<param> tag supports the global attributes, view complete the property sheet HTML Global Attributes .


Event Properties

<param> tag supports all HTML event attributes .