Partilhar via


TYPE Attribute | type Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

Sets or gets the MIME type of the media object referenced by the SRC attribute.

Syntax

HTML <ELEMENT TYPE = sType... >
Scripting [ sType = ] object.type

Possible Values

sType String that specifies or receives the MIME type of the media associated with the element.

The property is read/write. The property has no default value.

Remarks

By default, the server should send the MIME type to the user agent. If that mechanism fails, the MIME type is obtained from this property.

This property cannot be modified in script after the onload event fires on the document body.

Applies To

t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO

See Also

Introduction to HTML+TIME