MIME Type 与文件扩展名大全(七):Text
数据
| 文件 扩展名 | MIME-Type | 可 压缩 | 备注 | 
|---|---|---|---|
| *.appcache*.manifest | text/cache-manifest | ✓ | |
| *.ics*.ifb | text/calendar | ||
| *.coffee*.litcoffee | text/coffeescript | ||
| *.css | text/css | ✓ | |
| *.csv | text/csv | ✓ | |
| *.html*.htm*.shtml | text/html | ✓ | |
| *.jade | text/jade | ||
| *.jsx | text/jsx | ✓ | |
| *.less | text/less | ✓ | |
| *.markdown*.md | text/markdown | ✓ | |
| *.mml | text/mathml | ||
| *.mdx | text/mdx | ✓ | |
| *.n3 | text/n3 | ✓ | |
| *.txt*.text*.conf*.def*.list*.log*.in*.ini | text/plain | ✓ | |
| *.dsc | text/prs.lines.tag | ||
| *.rtx | text/richtext | ✓ | |
| *.rtf | text/rtf | ✓ | |
| *.sgml*.sgm | text/sgml | ||
| *.shex | text/shex | ||
| *.slim*.slm | text/slim | ||
| *.spdx | text/spdx | ||
| *.stylus*.styl | text/stylus | ||
| *.tsv | text/tab-separated-values | ✓ | |
| *.t*.tr*.roff*.man*.me*.ms | text/troff | ||
| *.ttl | text/turtle | ||
| *.uri*.uris*.urls | text/uri-list | ✓ | |
| *.vcard | text/vcard | ✓ | |
| *.curl | text/vnd.curl | ||
| *.dcurl | text/vnd.curl.dcurl | ||
| *.mcurl | text/vnd.curl.mcurl | ||
| *.scurl | text/vnd.curl.scurl | ||
| *.sub | text/vnd.dvb.subtitle | ||
| *.ged | text/vnd.familysearch.gedcom | ||
| *.fly | text/vnd.fly | ||
| *.flx | text/vnd.fmi.flexstor | ||
| *.gv | text/vnd.graphviz | ||
| *.3dml | text/vnd.in3d.3dml | ||
| *.spot | text/vnd.in3d.spot | ||
| *.jad | text/vnd.sun.j2me.app-descriptor | ||
| *.wml | text/vnd.wap.wml | ||
| *.wmls | text/vnd.wap.wmlscript | ||
| *.vtt | text/vtt | ✓ | |
| *.s*.asm | text/x-asm | ||
| *.c*.cc*.cxx*.cpp*.h*.hh*.dic | text/x-c | ||
| *.htc | text/x-component | ||
| *.f*.for*.f77*.f90 | text/x-fortran | ||
| *.hbs | text/x-handlebars-template | ||
| *.java | text/x-java-source | ||
| *.lua | text/x-lua | ||
| *.mkd | text/x-markdown | ✓ | |
| *.nfo | text/x-nfo | ||
| *.opml | text/x-opml | ||
| *.org | text/x-org | ✓ | |
| *.p*.pas | text/x-pascal | ||
| *.pde | text/x-processing | ✓ | |
| *.sass | text/x-sass | ||
| *.scss | text/x-scss | ||
| *.etx | text/x-setext | ||
| *.sfv | text/x-sfv | ||
| *.ymp | text/x-suse-ymp | ✓ | |
| *.uu | text/x-uuencode | ||
| *.vcs | text/x-vcalendar | ||
| *.vcf | text/x-vcard | ||
| *.xml | text/xml | ✓ | |
| *.yaml*.yml | text/yaml | ✓ | 
注意事项
- 
MIME 是一项不断演进的标准,同一含义的类型可能会存在多个新旧版本。如果遇到客户端兼容性问题,则可尝试换个名称。(通常较简短的和包含 /vnd.的是新版名称,包含/x-的是旧版名称。)
- 
同一扩展名在不同应用场景下可能具有不同含义和格式,从而对应多个 MIME 类型,请注意区分。 
本文涉及的 “一个扩展名对应多个 MIME 类型” 的情况整理在下表中:
| 文件 扩展名 | MIME-Type | 备注 | 
|---|---|---|
| *.rtf | application/rtftext/rtf | |
| *.sub | image/vnd.dvb.subtitletext/vnd.dvb.subtitle | |
| *.org | application/vnd.lotus-organizertext/x-org | |
| *.xml | application/xmltext/xml |