看不懂的<meta http-equiv="Content-Type" content="text/html; charset=utf-8">?
phpcn_u226
phpcn_u226 2016-12-21 10:35:25
0
2
1864

如题

phpcn_u226
phpcn_u226

Antworte allen(2)
数据分析师

看不懂的<meta http-equiv="Content-Type" content="text/html; charset=utf-8">?-PHP中文网问答-看不懂的<meta http-equiv="Content-Type" content="text/html; charset=utf-8">?-PHP中文网问答

围观一下哦,学习一下。

阿神

这条代码设定页面使用的字符集“Content-Type”定义了定义当前页面的文件类型“text/html”和编码方式“utf-8”。

<meta> 是HTML语言中的一个可选的标记项。提供关于 HTML 文档的元数据。元数据不会显示在页面上,但是对于机器是可读的。

meta 元素被用于规定页面的描述、关键词、文档的作者、最后修改时间以及其他元数据。

元数据可用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 web 服务。

使用在页面的<head></head>之间。

meta的用法:

语法: <meta name="name" content="string">

参数:

1)name项:常用的选项有keywords(关键字)、description(描述或说明)、author(制作者)等。 

2)http-equiv项:可用于代替name项,常用的选项有creation-date(创作日期)、refresh(刷新与自动跳转)等。 

3)content(内容)项:根据name项或http-equiv项的定义来决定此项填写什么样的字符串。 

举个栗子:

<meta name="Keyword" content="php中文网,公开课,MOOC,php中文网,移动开发,IT技能,免费编程视频,在线编程学习,php开发,web前端,html5教程,css教程,ios开发培训,安卓开发教程,android开发,php中文网官网">

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!