TYPE Attribute | type Property (t:ANIMATION, t:AUDIO, t:IMG, ...)

HTML (DHTML)

TYPE Attribute | type Property

Internet Development Index

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

Syntax

HTML<ELEMENT TYPE = sType... >
Scriptingobject.type [ = sType ]

Possible Values

sTypeString 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.

Standards Information

This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 Non-Microsoft link.

Applies To

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

See Also

Introduction to HTML+TIME