zoukankan      html  css  js  c++  java
  • HTMLmeta

    网页显示字符集网页编码
    简体中文:    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    中文:        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    繁体中文:    <meta http-equiv="Content-Type" content="text/html; charset=BIG5" />
    英 语:        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    网页制作者信息
    <meta name="author" content="123456789" />

    网页关键字声明(搜索引擎优化地方)
    <meta name="keywords" content="123,456,789" />

    网页简介说明(搜索引擎优化地方)
    <meta name="description" content="简介内容" />

    防止别人在框架里调用你的页面
    <meta http-equiv="Window-target" content="_top" />

    自动跳转(此标签用法可以让网页在多少秒后自动从当前页面跳转到另外一个网页页面或网站)
    <meta http-equiv="Refresh" content="5;URL=http://www.cnblogs.com/heihaozi" />
    Content后跟值为当前页面在多少时间跳转;
    Url值为跳转到具体网页网站

    网页告诉搜索机器人向导对此网页操作(用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引)
    <meta name="robots" content="all" />
    content的参数有all,none,index,noindex,follow,nofollow。默认是all。如果在一个页面不加入此标签默认情况下content="all"意思是搜索并收录抓取爬行此网页及此网页指向页面。
    robots取值
    none
    搜索引擎将忽略此网页,等价于noindex,nofollow。
    noindex
    搜索引擎不索引此网页。
    nofollow
    搜索引擎不继续通过此网页的链接索引搜索其它的网页。
    all
    搜索引擎将索引此网页与继续通过此网页的链接索引,等价于index,follow。
    index
    搜索引擎索引此网页。
    follow
    搜索引擎继续通过此网页的链接索引搜索其它的网页。

    script标签<script src="js/index.js" type="text/javascript"></script>

    link标签<link href="img/index.css" rel="stylesheet" type="text/css" />

    收藏夹标签样式
    <link rel="icon" href="favicon.ico" type="image/x-icon" />

  • 相关阅读:
    [HEOI2015]兔子与樱花
    [HNOI2015]亚瑟王
    [JSOI2011]分特产
    某考试 T3 sine
    [JSOI2015]最小表示
    51NOD 1258 序列求和 V4
    Codeforces 622F The Sum of the k-th Powers
    Loj #6261. 一个人的高三楼
    [HAOI????] 硬币购物
    bzoj4318 OSU!
  • 原文地址:https://www.cnblogs.com/heihaozi/p/1790156.html
Copyright © 2011-2022 走看看