Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

Setting the parameter "autoplay" to "true" makes the audio play automatically after loading:

 

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

The tag is supported by most major browsers. However, the file format defined is not supported by all browsers.

Tag Definition and Usage Notes

The element lets you specify run-time settings for an object inserted into an XHTML document; that is, this tag can provide parameters for the [](/tags/tag-object.html) or [ ](/tags/tag-applet.html) tag that contains it.

Differences between HTML 4.01 and HTML5

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


Differences Between HTML and XHTML

In HTML, the tag has no end tag.

In XHTML, The tag must be closed properly.


property

property Value Description
name name Defines the name of the parameter (used in scripts).
type MIME_type Not supported in HTML5. Defines the MIME type of the parameter.
value value Describes the value of the parameter.
valuetype data
 ref       

 object | HTML5 does not support。Description值的类型。 |


Global Attributes

The tag supports global attributes; see the full list in [HTML Global Attributes](/tags/ref-standardattributes.html).

Event attribute

The tag supports all [HTML Event Attributes](/tags/ref-eventattributes.html).