type attribute | type property
Sets or retrieves the content type of the resource designated by the value attribute.
Syntax
| HTML | <element type="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
the content type of the resource designated by the value attribute, only in the case where valueType is set to ref. This attribute thus specifies for the user agent the type of values that will be found at the URI designated by value.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
Remarks
The content type specifies the nature of a linked resource. Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered content types, see MIME Media Types.
Examples
The following example shows how to use the param element to specify a run-time parameter for the object specified by the object element. A URI is specified for the Windows Media Player control.
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="FileName" value="http://msdn.microsoft.com/workshop/samples/author/behaviors/media/28movie.asf" valuetype="ref" TYPE="video/*"/> </object>
See also