The term Internet media type refers to the type of a resource. In short, it defines its structure.
The Internet media type is also known as MIME (Multipurpose Internet Mail Extensions) because the media type definition started with the email mime. but ultimately, the media type is the first part of a mime.
For example, in this email content type: 1):
Content-Type: text/plain; charset=us-ascii
the mime or media type is: text/plain (Note that charset is an extra parameter that defines the character set)
A media type has the following syntax:
mainType/subType
where mainType is one of the five discrete top-level media types:
The specific syntax rule is: A string is a valid MIME type with no parameters if it matches the media-type rule defined in section 3.1.1.1 “Media Types” of RFC 7231, but does not contain any ; U+003B characters. In other words, if it consists only of a type and subtype, with no MIME Type parameters.
A user agent must not consider the types text/plain and application/octet-stream as having a registered plugin.
The registry is the full published list of media type. It's available at: registry
Example:
audio/mpeg
image/gif
image/jpeg
text/css
text/html
text/javascript
video/mpeg
video/quicktime
The term XML MIME type is used to refer to the MIME types:
Media Type - x-www-form-urlencoded
See What are the Read-optimized File Formats (write once, read many)?
You can detect it:
Java: probeContentType