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.

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



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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