Definition and Usage. The type attribute specifies the Internet media type (formerly known as MIME type) of the object.
Media types are also used by other internet protocols such as and document file formats such as, for similar purpose. Contents • • • • • • • • • • • • • • Naming [ ] A media type consists of a type and a subtype, which is further structured into a tree. A media type can optionally define a suffix and parameters: type '/' [tree '.' ] subtype ['+' suffix] *[';' parameter] The currently registered types are: application, audio, example, font, image, message, model, multipart, text and video. As an example, an file might be designated text/html; charset=UTF-8. In this example, text is the type, html is the subtype, and charset=UTF-8 is an optional parameter indicating the. A subtype typically consists of a media format, but it may or must also contain other content, such as a tree prefix, producer, product or suffix, according to the different rules in registration trees.
Types, subtypes, and parameter names are case-insensitive. Parameter values are usually case-sensitive, but may be interpreted in a case-insensitive fashion depending on the intended use.