/ / MIME types: description and list of basic

MIME types: description and list of basic

Initially, MIME types were designed forthe ability to transfer data other than text. Actually it was for e-mail. For example, to transfer a picture, through its protocol, a MIME type was used, which informs that, for example, a JPEG file is being transmitted.

The development of technology and its emergence

MIME types are actively used for transmissiondata in the HTTP protocol. In simple terms, it describes the additional attributes of the forwarded package and supports the ability to implement the transfer of multiple files, even nested within one message. In order to inform the recipient of what type of file is being transmitted and, accordingly, how to work with it, the header of the file adds its MIME type. For example, plain text is labeled text / plain, and electronic pages are text / html.

Why do I need to know about MIME?

About how the MIME types are arranged and for what purposes,you need to know the web developers and programmers, whose job it is to create products that somehow work with the Network. Describe the interaction better on an example close to reality.

mime types

The web programmer writes the code for one of the pagessite. It allows you to download a PDF file. In the code, it specifies a MIME for this type of data: application / pdf. The browser, referring to this page, reads the title and understands that this is a PDF file. And depending on the settings either immediately starts downloading it, or just opens it for viewing in the window. Thus, the separation of content into types allows the client to adequately respond to incoming data types in an appropriate way.

MIME type list

The number of file types listed in thestandard MIME, is large. For convenience, they are all divided into categories. It is worthwhile to consider the main ones and describe the types, as well as how the browser will react to them.

Category text

There are types in it which, one way or another, are related to the transmission of textual information. This can include scripts, style sheets, plain text. The category includes:

  • Html. Hypertext markup language. No site on the Internet can work without its use.
  • Css. Cascading style sheets. The design and interaction of objects on the page is carried out with the help of such files.
  • Javascript. Having seen this type, the browser will immediately understand that it needs to process a piece of code - a script.
  • Plain. Simple plain text.
  • Xml. XML markup files.

mime type

Category image

Here, extensions of the transferred files are sent, for example:

  • gif;
  • jpeg;
  • tiff.

Category application

Contains types that you can, eitherotherwise, run, that is, the data of some applications or services. The reaction of the browser to some of them may be a request to launch a special program or opening it directly on the page.

  • Json. Convenient data transfer format. Tells the browser that the response will be sent to json.
  • Pdf. Depending on the browser settings, this type can be downloaded, viewed in a window or use a third-party program installed on the computer.
  • Zip and gzip. Transfer of archive files.
  • Ogg. Designation for multimedia content.
  • Xhtml + xml. The XHTML data transfer format, which complements and enhances the functionality of classic HTML, and also brings the effectiveness of XML to the standard.

mime type list

Category audio

By analogy with graphic files in this category, the extensions are basically:

  • Basic. The standard type of sound file.
  • Aac. The format of the audio file.
  • Mpeg. Here mp3 or mpeg can be transmitted.
  • X-ms-wma or x-ms-wax. Windows Media Audio data type.
  • Webm. A fairly young video format developed by Google. Already supported by many browsers and media players.

FROM

X-types are classified as application. With their help, non-standard file types are indicated. These include, for example, archives tar, RAR, FLASH and many others not included in the main list.

Conclusion

Список MIME type постоянно расширяется в связи с the emergence of new technologies, standards and file types. You can view the current list in the latest RFC document updates regarding MIME types.

Liked:
0
Popular Posts
Spiritual development
Food
yup