Media Types


Media types indicate the format of a file or document. They used to be called MIME types. MIME stands for Multipurpose Internet Mail Extensions.
The browser uses the media type, and not the file extension to interpret the content.
The media type can be set in the Content-Type header.

The MIME types are specified like this:
type/subtype an optional; parameter can be added: text/plain;charset=UTF-8

Types

There are two types: Discrete and Multipart.

Discrete

Examples for discrete types are:

Multipart

Multipart types represent a composite document.
There are only two types: