www.RickBull.com > tutorials > HTML > Useful Information
Jump to: Contents | Language Codes | Media Types | Entities | Countries | Colours | Time-Zones | Sever Codes | User-Agent Strings

Media Types

Warning: This page is not still under constuction, and is lacking a lot of information. Please check back at a later date for a fuller listing, thank you.

This page lists the media-type codes that can be used in HTML for the type attribute (amongst other uses). The reference article for this was ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/, please visit there for a more in depth-explination, as well as more grouping of these codes. Also visit http://www.w3.org/TR/html401/ for the HTML 4.01 specifications, where the type attribute is explain for many HTML elements.

Media Types
Description Code/Type Common Extension(s)
Text
Plain Texttext/plaintxt
Rich Text Formattext/richtextrtx
???text/enriched
Tab Seperated Listtext/tab-separated-values
HTMLtext/htmlhtm, html
SGMLtext/sgmlsgml, sgm
???text/vnd.latex-z
???text/vnd.fmi.flexstor
???text/uri-list
???text/vnd.abc
???text/rfc822-headers
???text/vnd.in3d.3dml
???text/prs.lines.tag
???text/vnd.in3d.spot
Cascading Style Sheettext/csscss
XMLtext/xmlxml
???text/xml-external-parsed-entity
Rich Text Formattext/rtfrtf
???text/directory
???text/calendar
???text/vnd.wap.wml
???text/vnd.wap.wmlscript
???text/vnd.motorola.reflex
???text/vnd.fly
???text/vnd.wap.sl
???text/vnd.wap.si
???text/t140
???text/vnd.ms-mediapackage
???text/vnd.IPTC.NewsML
???text/vnd.IPTC.NITF
???text/vnd.curl
???text/vnd.DMClientScript
???text/parityfec
Multipart
???multipart/mixed
???multipart/alternative
???multipart/digest
???multipart/parallel
???multipart/appledouble
???multipart/header-set
Form Data (from HTML form element)multipart/form-data
???multipart/related
???multipart/report
???multipart/voice-message
???multipart/signed
???multipart/encrypted
???multipart/byteranges
Message
???message/rfc822
???message/partial
???message/external-body
???message/news
???message/http
???message/delivery-status
???message/disposition-notification
???message/s-http
Application
???application/octet-stream
Postscriptapplication/postscriptps, eps, ai
???application/oda
ATOMICMAIL secure interactive messaging languageapplication/atomicmail
Andrew data streamapplication/andrew-inset
BBN/Slate documentapplication/slate
???application/wita
???application/dec-dx
???application/dca-rft
Active Mail messageapplication/activemessage
Rich Text Formatapplication/rtfrtf
Apple Machintosh Fileapplication/applefile
Apple Machintosh File (BinHex 4.0 encoding)application/mac-binhex40
News article/batchapplication/news-transmission
WordPerfect 5.1 Fileapplication/wordperfect5.1doc, wp, wp5, wkb, wpd
Adobe PDF documentapplication/pdfpdf
PKZIP Fileapplication/zipzip
MacWrite II documentapplication/macwriteii
Microsoft Word Fileapplication/msworddoc
???application/remote-printing
Mathematica Notebookapplication/mathematica
???application/cybercash
Common Ground portable file format (a.k.a. Digital Paper)application/commonground
CAD file-formatapplication/iges
Acorn RISC OS fileapplication/riscos
???application/eshop
???application/x400-bp
???application/sgml
???application/cals-1840
???application/pgp-encrypted
???application/pgp-signature
???application/pgp-keys
FrameMaker document (normal)application/vnd.framemaker
FrameMaker document (MIF)application/vnd.mif
Microsoft Excel documentapplication/vnd.ms-excelxls
Microsoft Powerpoint documentapplication/vnd.ms-powerpoint.ppt
Microsoft Project documentapplication/vnd.ms-project
Microsoft Works documentapplication/vnd.ms-works
Microsoft MAPI Transport Neutral Encoding Formatapplication/vnd.ms-tnef
???application/vnd.svd
???application/vnd.music-niff
???application/vnd.ms-artgalry
???application/vnd.truedoc
???application/vnd.koan
???application/vnd.street-stream
???application/vnd.fdf
???application/set-payment-initiation
???application/set-payment
???application/set-registration-initiation
???application/set-registration
???application/vnd.seemail
???application/vnd.businessobjects
???application/vnd.meridian-slingshot
???application/vnd.xara
???application/sgml-open-catalog
???application/vnd.rapid
???application/vnd.enliven
???application/vnd.japannet-registration-wakeup
???application/vnd.japannet-verification-wakeup
???application/vnd.japannet-payment-wakeup
???application/vnd.japannet-directory-service
???application/vnd.intertrust.digibox
???application/vnd.intertrust.nncp
???application/prs.alvestrand.titrax-sheet
???application/vnd.noblenet-web
???application/vnd.noblenet-sealer
???application/vnd.noblenet-directory
???application/prs.nprend
???application/vnd.webturbo
???application/hyperstudio
???application/vnd.shana.informed.formtemplate
???application/vnd.shana.informed.formdata
???application/vnd.shana.informed.package
???application/vnd.shana.informed.interchange
???application/vnd.$commerce_battelle
???application/vnd.osa.netdeploy
???application/vnd.ibm.MiniPay
???application/vnd.japannet-jpnstore-wakeup
???application/vnd.japannet-setstore-wakeup
???application/vnd.japannet-verification
???application/vnd.japannet-registration
???application/vnd.hp-HPGL
???application/vnd.hp-PCL
???application/vnd.hp-PCLXL
???application/vnd.musician
???application/vnd.FloGraphIt
???application/vnd.intercon.formnet
???application/vemmi
???application/vnd.ms-asf
???application/vnd.ecdis-update
???application/vnd.powerbuilder6
???application/vnd.powerbuilder6-s
???application/vnd.lotus-wordpro
???application/vnd.lotus-approach
???application/vnd.lotus-1-2-3
???application/vnd.lotus-organizer
???application/vnd.lotus-screencam
???application/vnd.lotus-freelance
???application/vnd.fujitsu.oasys
???application/vnd.fujitsu.oasys2
???application/vnd.swiftview-ics
???application/vnd.dna
???application/prs.cww
???application/vnd.wt.stf
???application/vnd.dxr
???application/vnd.mitsubishi.misty-guard.trustweb
???application/vnd.ibm.modcap
???application/vnd.acucobol
???application/vnd.fujitsu.oasys3
???application/marc
???application/vnd.fujitsu.oasysprs
???application/vnd.fujitsu.oasysgp
???application/vnd.visio
???application/vnd.netfpx
???application/vnd.audiograph
???application/vnd.epson.salt
???application/vnd.3M.Post-it-Notes
???application/vnd.novadigm.EDX
???application/vnd.novadigm.EXT
???application/vnd.novadigm.EDM
???application/vnd.claymore
???application/vnd.comsocaller
???application/pkcs7-mime
???application/pkcs7-signature
???application/pkcs10
???application/vnd.yellowriver-custom-menu
???application/vnd.ecowin.chart
???application/vnd.ecowin.series
???application/vnd.ecowin.filerequest
???application/vnd.ecowin.fileupdate
???application/vnd.ecowin.seriesrequest
???application/vnd.ecowin.seriesupdate
???application/EDIFACT
???application/EDI-X12
???application/EDI-Consent
???application/vnd.wrq-hp3000-labelled
???application/vnd.minisoft-hp3000-save
???application/vnd.ffsns
???application/vnd.hp-hps
???application/vnd.fujixerox.docuworks
???application/xml
???application/xml-external-parsed-entity
???application/xml-dtd
???application/vnd.anser-web-funds-transfer-initiation
???application/vnd.anser-web-certificate-issue-initiation
???application/vnd.is-xpr
???application/vnd.intu.qbo
???application/vnd.publishare-delta-tree
???application/vnd.cybank
???application/batch-SMTP
???application/vnd.uplanet.alert
???application/vnd.uplanet.cacheop
???application/vnd.uplanet.list
???application/vnd.uplanet.listcmd
???application/vnd.uplanet.channel
???application/vnd.uplanet.bearer-choice
???application/vnd.uplanet.signal
???application/vnd.uplanet.alert-wbxml
???application/vnd.uplanet.cacheop-wbxml
???application/vnd.uplanet.list-wbxml
???application/vnd.uplanet.listcmd-wbxml
???application/vnd.uplanet.channel-wbxml
???application/vnd.uplanet.bearer-choice-wbxml
???application/vnd.epson.quickanime
???application/vnd.commonspace
???application/vnd.fut-misnet
???application/vnd.xfdl
???application/vnd.intu.qfx
???application/vnd.epson.ssf
???application/vnd.epson.msf
???application/vnd.powerbuilder7
???application/vnd.powerbuilder7-s
???application/vnd.lotus-notes
???application/pkixcmp
???application/vnd.wap.wmlc
???application/vnd.wap.wmlscriptc
???application/vnd.motorola.flexsuite
???application/vnd.wap.wbxml
???application/vnd.motorola.flexsuite.wem
???application/vnd.motorola.flexsuite.kmr
???application/vnd.motorola.flexsuite.adsi
???application/vnd.motorola.flexsuite.fis
???application/vnd.motorola.flexsuite.gotap
???application/vnd.motorola.flexsuite.ttc
???application/vnd.ufdl
???application/vnd.accpac.simply.imp
???application/vnd.accpac.simply.aso
???application/vnd.vcx
???application/ipp
???application/ocsp-request
???application/ocsp-response
???application/vnd.previewsystems.box
???application/vnd.mediastation.cdkey
???application/vnd.pg.format
???application/vnd.pg.osasli
???application/vnd.hp-hpid
???application/pkix-cert
???application/pkix-crl
???application/vnd.Mobius.TXF
???application/vnd.Mobius.PLC
???application/vnd.Mobius.DIS
???application/vnd.Mobius.DAF
???application/vnd.Mobius.MSL
???application/vnd.cups-raster
???application/vnd.cups-postscript
???application/vnd.cups-raw
???application/index
???application/index.cmd
???application/index.response
???application/index.obj
???application/index.vnd
???application/vnd.triscape.mxs
???application/vnd.powerbuilder75
???application/vnd.powerbuilder75-s
???application/vnd.dpgraph
???application/http
???application/sdp
???application/vnd.eudora.data
???application/vnd.fujixerox.docuworks.binder
???application/vnd.vectorworks
???application/vnd.grafeq
???application/vnd.bmi
???application/vnd.ericsson.quickcall
???application/vnd.hzn-3d-crossword
???application/vnd.wap.slc
???application/vnd.wap.sic
???application/vnd.groove-injector
???application/vnd.fujixerox.ddd
???application/vnd.groove-account
???application/vnd.groove-identity-message
???application/vnd.groove-tool-message
???application/vnd.groove-tool-template
???application/vnd.groove-vcard
???application/vnd.ctc-posml
???application/vnd.canon-lips
???application/vnd.canon-cpdl
???application/vnd.trueapp
???application/vnd.s3sms
???application/iotp
???application/vnd.mcd
???application/vnd.httphone
???application/vnd.informix-visionary
???application/vnd.msign
???application/vnd.ms-lrm
???application/vnd.contact.cmsg
???application/vnd.epson.esf
???application/whoispp-query
???application/whoispp-response
???application/vnd.mozilla.xul+xml
???application/parityfec
???application/vnd.palm
???application/vnd.fsc.weblaunch
???application/vnd.tve-trigger
???application/dvcs
???application/sieve
???application/vnd.vividence.scriptfile
???application/vnd.hhe.lesson-player
???application/beep+xml
???application/font-tdpfr
???application/vnd.mseq
???application/vnd.aether.imp
???application/vnd.Mobius.MQY
???application/vnd.Mobius.MBK
???application/vnd.vidsoft.vidconference
???application/vnd.ibm.afplinedata
???application/vnd.irepository.package+xml
???application/vnd.sss-ntf
???application/vnd.sss-dtf
???application/vnd.sss-cod
???application/vnd.pvi.ptid1
???application/isup
???application/qsig
???application/timestamp-query
???application/timestamp-reply
???application/vnd.pwg-xhtml-print+xml
Image
JPEG/JPG imageimage/jpegjpeg, jpg
GIF imageimage/gifgif
???image/ief
???image/g3fax
TIF/TIFF imageimage/tifftif, tiff
???image/cgm
???image/naplps
???image/vnd.dwg
???image/vnd.svf
???image/vnd.dxf
PNG imageimage/pngpng
???image/vnd.fpx
???image/vnd.net-fpx
???image/vnd.xiff
???image/prs.btif
???image/vnd.fastbidsheet
???image/vnd.wap.wbmp
???image/prs.pti
???image/vnd.cns.inf2
???image/vnd.mix
???image/vnd.fujixerox.edmics-rlc
???image/vnd.fujixerox.edmics-mmr
???image/vnd.fst
Audio
Audio Fileaudio/basicau
???audio/32kadpcm
???audio/vnd.qcelp
???audio/vnd.digital-winds
???audio/vnd.lucent.voice
???audio/vnd.octel.sbc
???audio/vnd.rhetorex.32kadpcm
???audio/vnd.vmx.cvsd
???audio/vnd.nortel.vbk
???audio/vnd.cns.anp1
???audio/vnd.cns.inf1
???audio/L16
???audio/vnd.everad.plj
???audio/telephone-event
???audio/tone
???audio/prs.sid
???audio/vnd.nuera.ecelp4800
???audio/vnd.nuera.ecelp7470
???audio/mpeg
???audio/parityfec
???audio/MP4A-LATM
???audio/vnd.nuera.ecelp9600
???audio/G.722.1
???audio/mpa-robust
???audio/vnd.cisco.nse
???audio/DAT12
???audio/L20
???audio/L24
Video
MPEG/MPG filevideo/mpeg
Apple QuickTime filevideo/quicktimemov, qt
???video/vnd.vivo
???video/vnd.motorola.video
???video/vnd.motorola.videop
???video/vnd.fvt
???video/pointer
???video/parityfec
???video/vnd.mpegurl
???video/MP4V-ES
???video/vnd.nokia.interleaved-multimedia
Model
???model/iges
???model/vrml
???model/mesh
???model/vnd.dwf
???model/vnd.gtw
???model/vnd.flatland.3dml
???model/vnd.vtu
???model/vnd.mts
???model/vnd.gdl
???model/vnd.gs-gdl
???model/vnd.parasolid.transmit.text
???model/vnd.parasolid.transmit.binary

All tutorials and content written by Rick Bull unless otherwise stated
Page's last update: Friday, 15th January 2010; 12:54:27 GMT +0000
Top of the page