Mime types define the format of a document that you will typically encounter in web development. In this article let’s look at a few important mime types for web developers.

What does MIME stand for?

MIME is the short format of **Multipurpose Internet Mail Extension. **It is an RFC standard that defines the format and nature of documents. Not, only documents, even images, fonts, etc. They are also known as media types.

Who is responsible for defining Mime types?

The Internet Assigned Numbers Authority (IANA) is responsible for all official MIME types. It is a standard body formed by a group of smart people that manages and maintains the mime types. Let me try to draw an analogy. You might have heard about ECMA (European Computers Manufacturing Association) which defines JavaScript standards (ECMA-262). So IANA is something similar.

Basic structure of Mime type definition

type/subtype

Where do you use Mime types?

You will find MIME type declarations in HTTP request and response headers. You will see something like below,

1. Request/Response headers

Content-Type: application/javascript

Content-Type: text/css
Content-Type: text/html
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/png

A full example of a response header (notice the content-type):

accept-ranges: bytes
age: 9
cache-control: public, max-age=0, must-revalidate
content-length: 599
content-type: application/json
date: Sun, 28 Jun 2020 17:32:11 GMT
etag: "280ea7447fc2b2fead9a3ed5fa838425-ssl"
server: Netlify
status: 200
strict-transport-security: max-age=31536000
x-nf-request-id: f524a793-387b-4034-9ef6-399de460103c-11991605

#http-request #web-development #https #mime

Important MIME types for web developers
1.20 GEEK