首页 > Web开发 > 详细

html的head内标签

时间:2017-08-19 14:06:44      阅读:312      评论:0      收藏:0      [点我收藏+]

ctrl+?:自动注释

head标签中包含的内容:

titile 标签

<link/>:搞图标

    <link rel="shortcut icon" href="image/favicon.ico> # 指定图片的图标以及所在的位置。用的图片是image下的favicon图片。

<style/>

<script/>

<meta 编码,跳转,刷新,关键字,描述,IE兼容>

1. 做编码,自动刷新和跳转,但是看不到什么时候跳转。在头部也可以做跳转。但是一般不用,应急用。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Refresh" Content="3">
    <meta http-equiv="‘Refresh" Content="3:Url=http://www.autohome.com.cn">
    <!--页面默认3S 刷新一次,跳转到指定的页面-->
    <title>Title</title>
</head>
<body>
    <div></div>
    <a href="http://www.oldboyedu.com">老男孩</a>
</body>

</html>

 2.关键词,给搜索引擎用的。就是搜哪些关键词能搜出来这个链接。

<meta name="keywords" content="高中 化学 全职 兼职 高考冲刺">

 3.描述

  例如:cnblogs       

<meta name="description" content="高一 氧化还原反应 同步课程 期末冲刺辅导">

 4.X-UA-Compatible: 指定兼容IE9

<meta http-equiv="X-UA-Compatible" content="IE=IE9;IE=IE8;"/>

 

html的head内标签

原文:http://www.cnblogs.com/momo8238/p/7396143.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!