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.

Related Products