You are here: Reference > HTML > attributes > type (param)

type attribute (param)

Browser support:
Specifies the MIME type of the resource referenced by the value attribute. The type attribute can be used only if the value of the valueType attribute is set to 'ref'.
JavaScript page for this attribute: type. You can find other example(s) there.

Possible values:

String that sets the media type. See MIME types for more information.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the type attribute with Windows Media Player:
<object type="application/x-mplayer2" data="testVideo.wmv" width="320px" height="286px">
    <param name="src" value="testVideo.wmv" valuetype="ref" type="video/x-ms-wmv" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content