asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > TYPE Attribute

TYPE Attribute | type Property


Specifies the content type of the linked document.

Applies To: A   BUTTON   EMBED   INPUT   LINK   MENU   OBJECT   SCRIPT   SOURCE   STYLE

Syntax

Inline <element type = sMediaType...>
Script object.type = sMediaType

Possible Values

sMediaType String specifying a valid MIME type string.

The property is read/write with no default value.

Remarks

The type attribute, if present, gives the MIME type of the linked resource.

It is purely advisory. User agents must not consider the attribute authoritative.

The value must be a valid MIME type string ( "image/jpeg", "text/html" etc. )

Upon fetching the resource, user agents must not use metadata included in the link to the resource to determine its type.

Example


Applies To

See Also

How HyperText Links Work


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note