Content Type

Also known as MIME Type, Content type’s MIME is short form of Multipurpose Internet Mail Extension. It works a HTTP header that includes various information about page like description of the package media (Images, text, video and so on)
It is sent as a HTTP protocol and exchanges response package to client.

Example: Suppose you send html text based file as a response to the client the MIME type specification-



There are two part of MIME Type :-:

  • Base name
  • Extension name

Base name: It is a genetic or we can say pre defined file file name.

Extension name: Extension name is name of files with specific extensions.

Following are supported Content Type by MIME

File MIME Type Extension
xml text/xml. .xml.
HTML text/html. .html.
Plaintext File text/plain. .txt.
PDF application/pdf. .pdf.
gif Image image/gif. .gif.
JPEG Image image/jpeg. .jpeg.
PNG Image image/x-png. .png.
MP3 Music File audio/mpeg. .mp3.
MS Word Document application/msword. .doc.
Excel work sheet application/ .xls.
Power Point Document application/ .ppt.