type (HTML attribute)

Spec
Depr. Version
No N/A

Syntax

type="MIME type"

Description

The type attribute is used in addition to (or in place of) the src attribute, and lets the author define the MIME Type of the embed content. In most cases, though, this attribute is not required as the browser can determine the MIME type based on the URL or based on the header sent by the server for the embed content.

Example

<embed src="conference-report.mp4" type="video/mp4"></embed>

Value

MIME type in the format type/subtype, e.g. "text/html", "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