Appendix H

MIME Media Types

You have seen the type attribute used throughout this book on a number of elements, the value of which is a MIME media type.

Multipurpose Internet Mail Extension (MIME) media types were originally devised so that e-mail could include information other than plain text. MIME media types indicate the following things:

  • How the parts of a message, such as text and attachments, are combined into the message
  • The way in which each part of the message is specified
  • The way the items are encoded for transmission so that even software that was designed to work only with ASCII text can process the message

As you have seen, however, MIME types are not just for use with e-mail; they were adopted by web servers as a way to tell web browsers what type of material was being sent to them so that they could cope with that kind of file correctly.

MIME content types consist of two parts:

  • A main type
  • A subtype

The main type is separated from the subtype by a forward slash character—for example, text/html for HTML.

This appendix is organized by the main types:

  • text
  • image
  • multipart
  • audio
  • video
  • message
  • model
  • application

For example, the text main type contains types of plain text files, such as

  • text/plain for plain text files
  • text/html for HTML files
  • text/rtf for text files using rich text formatting

MIME types are officially supposed to be assigned and listed by the Internet Assigned Numbers Authority (IANA).

Many of the popular MIME types in this list (all those that begin with x-) are not assigned by the IANA and do not have official status. (Some of these are popular and browsers support them, such as audio/x-mp3. You can see the list of official MIME types at www.iana.org/assignments/media-types/.)

Those preceded with vnd. are vendor-specific.

The most popular MIME types are listed in this appendix in a bold typeface to help you find them.

Text

When specifying the MIME type of a content-type field (for example, in a <meta> element), you can also indicate the character set for the text being used, for example:

content-type:text/plain; charset=iso-8859-1

If you do not specify a character set, the default is US-ASCII.

calendar
css
directory
enriched
html
parityfec
plain
prs.fallenstein.rst
prs.lines.tag
rfc822-headers
richtext
rtf
sgml
t140
tab-separated-values
uri-list
vnd.abc
vnd.curl
vnd.DMClientScript
vnd.fly
vnd.fmi.flexstor
vnd.in3d.3dml
vnd.in3d.spot
vnd.IPTC.NewsML
vnd.IPTC.NITF
vnd.latex-z
vnd.motorola.reflex
vnd.ms-mediapackage
vnd.net2phone.commcenter.command
vnd.sun.j2me.app-descriptor
vnd.wap.si
vnd.wap.sl
vnd.wap.wml
vnd.wap.wmlscript
xml
xml-external-parsed-entity

Image

bmp
cgm
g3fax
gif
jpeg
Ief
naplps
png
prs.btif
prs.pti
t38
tiff
tiff-fx
vnd.cns.inf2
vnd.djvu
vnd.dwg
vnd.dxf
vnd.fastbidsheet
vnd.fpx
vnd.fst
vnd.fujixerox.edmics-mmr
vnd.fujixerox.edmics-rlc
vnd.globalgraphics.pgb
vnd.microsoft.icon
vnd.mix
vnd.ms-modi
vnd.net-fpx
vnd.sealed.png
vnd.sealedmedia.softseal.gif
vnd.sealedmedia.softseal.jpg
vnd.svf
vnd.wap.wbmp
vnd.xiff
x-portable-pixmap
x-xbitmap

Multipart

alternative
appledouble
byteranges
digest
encrypted
form-data
header-set
mixed
parallel
related
report
signed
voice-message

Audio

1d-interleaved-parityfec
32kadpcm
3gpp
3gpp2
ac3
AMR
AMR-WB
amr-wb+
asc
ATRAC-ADVANCED-LOSSLESS
ATRAC-X
ATRAC3
audio/qcelp
basic
BV16
BV32
clearmode
CN
DAT12
dls
dsr-es201108
dsr-es202050
dsr-es202211
dsr-es202212
DV
DVI4
eac3
EVRC
EVRC0
EVRC1
EVRCB
EVRCB0
EVRCB1
EVRC-QCP
EVRCWB
EVRCWB0
EVRCWB1
example
fwdred
G719
G722
c72uf021
G723
G726-16
G726-24
G726-32
G726-40
G728
G729
c72uf091
G729D
G729E
GSM
GSM-EFR
GSM-HR-08
iLBC
ip-mr_v2.5
L8
L16
L20
L24
LPC
mobile-xmf
MPA
mp4
MP4A-LATM
mpa-robust
mpeg
mpeg4-generic
ogg
parityfec
PCMA
PCMA-WB
PCMU
PCMU-WB
prs.sid
QCELP
raptorfec
RED
rtp-enc-aescm128
rtp-midi
rtx
SMV
SMV-QCP
SMV0
sp-midi
speex
t140c
t38
telephone-event
tone
UEMCLIP
ulpfec
VDVI
VMR-WB
vnd.3gpp.iufp
vnd.4SB
vnd.audiokoz
vnd.CELP
vnd.cisco.nse
vnd.cmles.radio-events
vnd.cns.anp1
vnd.cns.inf1
vnd.dece.audio
vnd.digital-winds
vnd.dlna.adts
vnd.dolby.heaac.1
vnd.dolby.heaac.2
vnd.dolby.mlp
vnd.dolby.mps
vnd.dolby.pl2
vnd.dolby.pl2x
vnd.dolby.pl2z
vnd.dolby.pulse.1
vnd.dra
vnd.dts
vnd.dts.hd
vnd.dvb.file
vnd.everad.plj
vnd.hns.audio
vnd.lucent.voice
vnd.ms-playready.media.pya
vnd.nokia.mobile-xmf
vnd.nortel.vbk
vnd.nuera.ecelp4800
vnd.nuera.ecelp7470
vnd.nuera.ecelp9600
vnd.octel.sbc
vnd.rhetorex.32kadpcm
vnd.rip
vnd.sealedmedia.softseal.mpeg
vnd.vmx.cvsd
vorbis
vorbis-config
x-aiff
x-midi
x-mod
x-mp3
x-wav

Video

3gpp
3gpp-tt
3gpp2
BMPEG
BT656
CelB
DV
example
H261
H263
H263-1998
H263-2000
H264
H264-RCDO
H264-SVC
JPEG
jpec20uf000
MJ2
MP1S
MP2P
MP2T
mp4
MP4V-ES
MPV
mpeg
mpeg4-generic
Nv
ogg
parityfec
pointer
quicktime
raptorfec
raw
rtp-enc-aescm128
rtx
SMPTE292M
ulpfec
vc1
vnd.CCTV
vnd.dece.hd
vnd.dece.mobile
vnd.dece.mp4
vnd.dece.pd
vnd.dece.sd
vnd.dece.video
vnd.directv.mpeg
vnd.directv.mpeg-tts
vnd.dlna.mpeg-tts
vnd.dvb.file
vnd.fvt
vnd.hns.video
vnd.iptvforum.1dparityfec-1010
vnd.iptvforum.1dparityfec-2005
vnd.iptvforum.2dparityfec-1010
vnd.iptvforum.2dparityfec-2005
vnd.iptvforum.ttsavc
vnd.iptvforum.ttsmpeg2
vnd.motorola.video
vnd.motorola.videop
vnd.mpegurl
vnd.ms-playready.media.pyv
vnd.nokia.interleaved-multimedia
vnd.nokia.videovoip
vnd.objectvideo
vnd.sealed.mpeg1
vnd.sealed.mpeg4
vnd.sealed.swf
vnd.sealedmedia.softseal.mov
vnd.uvvu.mp4
x-msvideo
x-sgi-movie

Message

CPIM
delivery-status
disposition-notification
external-body
http
news
partial
rfc822
s-http
sip
sipfrag

Model

iges
mesh
vnd.dwf
vnd.flatland.3dml
vnd.gdl
vnd.gs-gdl
vnd.gtw
vnd.mts
vnd.parasolid.transmit.binary
vnd.parasolid.transmit.text
vnd.vtu
vrml

Application

activemessage
andrew-inset
applefile
atomicmail
batch-SMTP
beep+xml
cals-1840
cnrp+xml
commonground
cpl+xml
cybercash
dca-rft
dec-dx
dicom
dvcs
EDI-Consent
EDI-X12
EDIFACT
eshop
font-tdpfr
http
hyperstudio
iges
index
index.cmd
index.obj
index.response
index.vnd
iotp
ipp
isup
mac-binhex40
macwriteii
marc
mathematica
mpeg4-generic
msword
news-message-id
news-transmission
ocsp-request
ocsp-response
octet-stream
oda
ogg
parityfec
pdf
pgp-encrypted
pgp-keys
pgp-signature
pidf+xml
pkcs10
pkcs7-mime
pkcs7-signature
pkix-cert
pkix-crl
pkix-pkipath
pkixcmp
postscript
prs.alvestrand.titrax-sheet
prs.cww
prs.nprend
prs.plucker
qsig
reginfo+xml
remote-printing
riscos
rtf
sdp
set-payment
set-payment-initiation
set-registration
set-registration-initiation
sgml
sgml-open-catalog
sieve
slate
timestamp-query
timestamp-reply
tve-trigger
vemmi
vnd.3gpp.pic-bw-large
vnd.3gpp.pic-bw-small
vnd.3gpp.pic-bw-var
vnd.3gpp.sms
vnd.3M.Post-it-Notes
vnd.accpac.simply.aso
vnd.accpac.simply.imp
vnd.acucobol
vnd.acucorp
vnd.adobe.xfdf
vnd.aether.imp
vnd.amiga.ami
vnd.anser-web-certificate-issue-initiation
vnd.anser-web-funds-transfer-initiation
vnd.audiograph
vnd.blueice.multipass
vnd.bmi
vnd.businessobjects
vnd.canon-cpdl
vnd.canon-lips
vnd.cinderella
vnd.claymore
vnd.commerce-battelle
vnd.commonspace
vnd.contact.cmsg
vnd.cosmocaller
vnd.criticaltools.wbs+xml
vnd.ctc-posml
vnd.cups-postscript
vnd.cups-raster
vnd.cups-raw
vnd.curl
vnd.cybank
vnd.data-vision.rdz
vnd.dna
vnd.dpgraph
vnd.dreamfactory
vnd.dxr
vnd.ecdis-update
vnd.ecowin.chart
vnd.ecowin.filerequest
vnd.ecowin.fileupdate
vnd.ecowin.series
vnd.ecowin.seriesrequest
vnd.ecowin.seriesupdate
vnd.enliven
vnd.epson.esf
vnd.epson.msf
vnd.epson.quickanime
vnd.epson.salt
vnd.epson.ssf
vnd.ericsson.quickcall
vnd.eudora.data
vnd.fdf
vnd.ffsns
vnd.fints
vnd.FloGraphIt
vnd.framemaker
vnd.fsc.weblaunch
vnd.fujitsu.oasys
vnd.fujitsu.oasys2
vnd.fujitsu.oasys3
vnd.fujitsu.oasysgp
vnd.fujitsu.oasysprs
vnd.fujixerox.ddd
vnd.fujixerox.docuworks
vnd.fujixerox.docuworks.binder
vnd.fut-misnet
vnd.genomatix.tuxedo
vnd.grafeq
vnd.groove-account
vnd.groove-help
vnd.groove-identity-message
vnd.groove-injector
vnd.groove-tool-message
vnd.groove-tool-template
vnd.groove-vcard
vnd.hbci
vnd.hhe.lesson-player
vnd.hp-HPGL
vnd.hp-hpid
vnd.hp-hps
vnd.hp-PCL
vnd.hp-PCLXL
vnd.httphone
vnd.hzn-3d-crossword
vnd.ibm.afplinedata
vnd.ibm.electronic-media
vnd.ibm.MiniPay
vnd.ibm.modcap
vnd.ibm.rights-management
vnd.ibm.secure-container
vnd.informix-visionary
vnd.intercon.formnet
vnd.intertrust.digibox
vnd.intertrust.nncp
vnd.intu.qbo
vnd.intu.qfx
vnd.ipunplugged.rcprofile
vnd.irepository.package+xml
vnd.is-xpr
vnd.japannet-directory-service
vnd.japannet-jpnstore-wakeup
vnd.japannet-payment-wakeup
vnd.japannet-registration
vnd.japannet-registration-wakeup
vnd.japannet-setstore-wakeup
vnd.japannet-verification
vnd.japannet-verification-wakeup
vnd.jisp
vnd.kde.karbon
vnd.kde.kchart
vnd.kde.kformula
vnd.kde.kivio
vnd.kde.kontour
vnd.kde.kpresenter
vnd.kde.kspread
vnd.kde.kword
vnd.kenameaapp
vnd.kidspiration
vnd.koan
vnd.liberty-request+xml
vnd.llamagraphics.life-balance.desktop
vnd.llamagraphics.life-balance.exchange+xml
vnd.lotus-1-2-3
vnd.lotus-approach
vnd.lotus-freelance
vnd.lotus-notes
vnd.lotus-organizer
vnd.lotus-screencam
vnd.lotus-wordpro
vnd.mcd
vnd.mediastation.cdkey
vnd.meridian-slingshot
vnd.micrografx.flo
vnd.micrografx.igx
vnd.mif
vnd.minisoft-hp3000-save
vnd.mitsubishi.misty-guard.trustweb
vnd.Mobius.DAF
vnd.Mobius.DIS
vnd.Mobius.MBK
vnd.Mobius.MQY
vnd.Mobius.MSL
vnd.Mobius.PLC
vnd.Mobius.TXF
vnd.mophun.application
vnd.mophun.certificate
vnd.sss-ntf
vnd.street-stream
vnd.svd
vnd.swiftview-ics
vnd.triscape.mxs
vnd.trueapp
vnd.truedoc
vnd.ufdl
vnd.uiq.theme
vnd.uplanet.alert
vnd.uplanet.alert-wbxml
vnd.uplanet.bearer-choice
vnd.uplanet.bearer-choice-wbxml
vnd.uplanet.cacheop
vnd.uplanet.cacheop-wbxml
vnd.uplanet.channel
vnd.uplanet.channel-wbxml
vnd.uplanet.list
vnd.uplanet.list-wbxml
vnd.uplanet.listcmd
vnd.uplanet.listcmd-wbxml
vnd.uplanet.signal
vnd.vcx
vnd.vectorworks
vnd.vidsoft.vidconference
vnd.visio
vnd.visionary
vnd.vividence.scriptfile
vnd.vsf
vnd.wap.sic
vnd.wap.slc
vnd.wap.wbxml
vnd.wap.wmlc
vnd.wap.wmlscriptc
vnd.webturbo
vnd.wqd
vnd.wrq-hp3000-labelled
vnd.wt.stf
vnd.wv.csp+wbxml
vnd.wv.csp+xml
vnd.wv.ssp+xml
vnd.xara
vnd.xfdl
vnd.yamaha.hv-dic
vnd.yamaha.hv-script
vnd.yamaha.hv-voice
vnd.yamaha.smaf-audio
vnd.yamaha.smaf-phrase
vnd.yellowriver-custom-menu
watcherinfo+xml
whoispp-query
whoispp-response
wita
wordperfect5.1
x-debian-package
x-gzip
x-java
x-javascript
x-msaccess
x-msexcel
x-mspowerpoint
x-rpm
x-zip
x400-bp
xhtml+xml
xml
xml-dtd
xml-external-parsed-entity
zip
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset