type (HTML attribute)

Spec
Depr. Version
No 3.2
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

type="MIME type"

Description

The type attribute lets the author define the MIME type of the applet or object content. In many cases, though, this attribute is not required, as the browser can determine the MIME type on the basis of the URL or the header sent by the server for the embedded content.

Example

This code shows a param element whose type is set to "video/mp4":

<param type="video/mp4"/>

Value

This attribute takes a MIME type in the format type/subtype, for instance, "text/html", or "application/x-shockwave-flash", or "video/mp4".

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

Related Products

Top Hosting Reviews

Search