all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

type attribute | type property

Sets or retrieves the content type of the resource designated by the value attribute.

Syntax

HTML<element type="p" ... >
JavaScript

p = object.type

 

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

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

param
Conceptual
Binding HTML Elements to Data
Introduction to Data Binding

 

 

Show:
© 2014 Microsoft