标签:
<head>元素出现在文档的开头部分。<head>与</head>之间的内容不会在浏览器的文档窗口显示,但是其间的元素有特殊重要的意义:
对文档做整体的控制和描述
SEO(Search Engine Optimization)的重要内容!
<title>
<title>元素定义HTML文档的标题。<title>与</title>之间的内容将显示在浏览器窗口的标题栏。
Demo
<meta name="keywords“ content="study,computer">
用来标记搜索引擎在搜索你的页面时所取出的关键词。
<meta name=“description“ content=“java,html">
这个 Meta 元素定义了对页面的描述:
<meta name="author"content=“soft">
用来标记文档的作者。
<meta http-equiv=“Content-Type”content=“text/html; charset=gb2312”>
用来标记你的页面的解码方式。
<meta http-equiv=“refresh”content=“5;URL=http://www.163.com”>
用来自动刷新网页
<head>
<title>典型的head</title>
<metahttp-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="author"content="akali">
<meta http-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control" content="no-cache">
<meta http-equiv="expires"content="0">
<meta name="keywords" content=“HTML,总结,博客 ">
<meta name="description "content=“关于CSDN博客的HTML总结">
<meta http-equiv="refresh"content="5;URL=http://www.blog.csdn.net">
<link rel="stylesheet"type="text/css" href="css/pagination.css" />
<script type="text/javascript"src="js/search.js"></script>
</head>
关于头部标签很常用、很关键,当然其重要程度也不言而喻。之所以单独拿出来总结一下,是自己老在这一部分产生一些低级的bug,以作分享。
标签:
原文地址:http://blog.csdn.net/wsl211511/article/details/51355648