Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

type property

Gets or sets the MIME type of a media resource.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.8Internet Explorer 9


object.put_type( type);object.get_type(* type);

Property values

Type: BSTR

A valid MIME type that specifies the type of media resource that src points to.

Standards information


You can use the codecs parameter to specify the exact encoding of the media resource. The following code example shows a source element that uses a type attribute and the codecs parameter to specify how a video was encoded.

<source src="video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.