English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The value attribute specifies the value of the <param> element. This attribute is usually used together with the name attribute to define the parameters of the plugin specified by the <object> tag.
Set the "autoplay" parameter to "true" so that the sound will automatically start playing when the page is loaded:
<!DOCTYPE html> <html> <head> <title>HTML:<param> value attribute - Basic Tutorial Website(oldtoolbag.com)/title> </head> <body> <object data="horse.wav"> <param name="autoplay" value="true"> </object> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the value attribute. However, the file format defined in the <object> is not supported by all browsers.
The value attribute specifies the value of the <param> element.
This attribute is usually used with the name attribute to specify the <object> parameters specified by the tag.
The value of the value attribute can be any value supported by the specified object.
None.
<param value="value">
Value | Description |
---|---|
value | The value of the parameter. |