你真的了解html吗?--之meta标签介绍
来源:互联网 发布:windows10 内存优化 编辑:程序博客网 时间:2024/05/16 08:38
Meta data元数据,何为元数据,根据百度百科的解释为:data about data (关于数据的数据)。网页中的元数据主要用来描述关于文档(而不是文档内容)的一些信息。
网页中的元数据主要一下几种方式来指定:1.在文档中通过meta标签来制定;2.在文档外通过link标签来指定;3.通过head元素的profile属性来制定。
这边笔记中主要来说meta元素,Mate中都是以键值对的形式出现,name是property,content是value,http-equiv在基于http传输时,来代替name。
有时候还会有用到其它的一些属性,如:lang指定content的语言,Dir指定文字的方向。
这里我们主要来看看元数据的一些用途。
l Meta与http headers
http-equiv来替换name属性,当文档通过http协议传输时,这个属性就有特殊的意义, http server可以通过这个属性指定的信息来生成一个http响应头。
l Meta与搜索引擎
通过为搜索引擎指定keyword,如:
<-- For speakers of US English -->
<META name="keywords" lang="en-us"
content="vacation, Greece, sunshine">
<-- For speakers of British English -->
<META name="keywords" lang="en"
content="holiday, Greece, sunshine">
<-- For speakers of French -->
<META name="keywords" lang="fr"
content="vacances, Grèce, soleil">
l Meta与pics,如:
<HEAD>
<META http-equiv="PICS-Label" content='
(PICS-1.1 "http://www.gcf.org/v2.5"
labels on "1994.11.05T08:15-0500"
until "1995.12.31T23:59-0000"
for "http://w3.org/PICS/Overview.html"
ratings (suds 0.5 density 0 color/hue 1))
'>
<TITLE>... document title ...</TITLE>
</HEAD>
l META 与文档中的默认信息
- The default scripting language.
- The default style sheet language.
- The document character encoding.
- 你真的了解html吗?--之meta标签介绍
- 你真的了解html吗?--之script标签介绍
- 你真的了解META-INF吗?
- 你真的了解META-INF吗?
- 你真的了解head标签下的meta?
- 你真的了解head标签下的meta?
- html meta 你真的知道吗?
- meta标签大全,了解这些meta标签的功能,让你的html事半功倍
- HTML head 头标签你真的了解么?
- 你真的了解HTML吗
- 你真的了解HTML吗
- 你真的了解HTML吗
- 你真的很了解HTML标签吗? 试试这个超异类的HTML标签小测验吧!
- html学习笔记之meta 标签介绍
- html标签meta介绍
- 你真的了解HTML吗?–雅虎面试题
- 你真的了解HTML吗?---面试题
- 雅虎面试题-你真的了解HTML吗?
- 数据库备份方案
- 经典语录
- [转载]p中影响编码的属性及其设置小结(contentType,pageEncoding,charset,setCharacterEncoding)
- log --fprintf()
- OneNote 2007 无法启动的问题
- 你真的了解html吗?--之meta标签介绍
- [转载]jsp中pageEncoding、charset=utf8"、(request/response).setCharacterEncoding("utf8")
- 我OUT了吧?
- 在ASP.NET中实现多文件上传
- SQL表连接
- 浅析struts-config.xml文件
- 游戏开发者非常需要全面
- struts 的中文乱码问题解决方案(3个)
- 总结 2009