http-equiv="Content-Type" content="text/html" charset="UTF-8"

【问题】关于html问题<meta http-equiv="Content-Type"content="text/html;charset=utf-8"/> 什么么意思?

【解析】:<Meta http-equiv="Content-Type" Content="text/html; Charset=gb2312"> 这个实现的功能是通过读取HTML页面的META标签 的Content-Type属性而得知需要使用哪种字符集显示该页面的。如果系统里没有装相应的字符集,则IE就提示下载。其他的语言也对应不同的charset,比如日文的字符集是“iso- 2022-jp ”,韩文的是“ks_c_5601”。

描述
content-type 规定文档的字符编码。

实例:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

default-style 规定要使用的预定义的样式表。

实例:

<meta http-equiv="default-style" content="the document's preferred stylesheet">

注释:上面 content 属性的值必须匹配同一文档中的一个 link 元素上的 title 属性的值,或者必须匹配同一文档中的一个 style 元素上的 title 属性的值。

refresh 定义文档自动刷新的时间间隔。

实例:

<meta http-equiv="refresh" content="300">

注释:值 "refresh" 应该慎重使用,因为它会使得页面不受用户控制。在 W3C's Web 内容可访问性指南 中使用 "refresh" 会到导致失败。

上述详细信息见:https://blog.csdn.net/weixin_39818813/article/details/79936042 

猜你喜欢

转载自blog.csdn.net/The_Best_Hacker/article/details/82750059
今日推荐