html中的content-type是什么意思?

如题所述

content-type是内容类型,用于定义网络文件的类型和网页的编码,决定文件接收方将以什么形式、什么编码读取这个文件。

用法示例:<meta content="text/html; charset=gb2312" http-equiv="Content-Type"/>

描述内容类型的字符串。该字符串通常被格式化为类型/子类型,其中类型是常规内容范畴而子类为特定内容类型。


扩展资料

content-type文件内容对照:

".*"="application/octet-stream"

".001"="application/x-001"

".301"="application/x-301"

".323"="text/h323"

".906"="application/x-906"

".907"="drawing/907"

".a11"="application/x-a11"

".acp"="audio/x-mei-aac"

".ai"="application/postscript"

".aif"="audio/aiff"

".aifc"="audio/aiff"

".aiff"="audio/aiff"

".anv"="application/x-anv"

".asa"="text/asa"

".asf"="video/x-ms-asf"

".asp"="text/asp"

".asx"="video/x-ms-asf"

".au"="audio/basic"

".avi"="video/avi"

".awf"="application/vnd.adobe.workflow"

".biz"="text/xml"

".bmp"="application/x-bmp"

".bot"="application/x-bot"

".c4t"="application/x-c4t"

".c90"="application/x-c90"

".cal"="application/x-cals"

".cat"="application/s-pki.seccat"

".cdf"="application/x-netcdf"

".cdr"="application/x-cdr"

".cel"="application/x-cel"

".cer"="application/x-x509-ca-cert"

".cg4"="application/x-g4"

".cgm"="application/x-cgm"

参考资料来源:百度百科-ContentType

温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2018-02-28
Content-Type是显示字符集的设定一般在meta信息中 比如<Meta http-equiv="Content-Type" Content="text/html; Charset=gb2312">
这个功能就是通过读取HTML页面META标签 的Content-Type属性而得知需要使用哪种字符集显示该页面 的。如果系统里没有装相应的字符集,则IE就提示下载。其他 的语言也对应不同的charset,比如日文的字符集是“iso- 2022-jp ”,韩文的是“ks_c_5601”。本回答被网友采纳
第2个回答  2013-09-19
Content-Type Content内容 Type格式,合起来就是内容格式..^_^
第3个回答  2017-10-30
Content-Type是显示字符集的设定一般在meta信息中比如这个功能就是通过读取HTML页面META标签的Content-Type属性而得知需要使用哪种字符集显示该页面的。
如果系统里没有装相应的字符集,则IE就提示下载。
相似回答