MIP 让搜索发现你的页面-规范升级

2018-11-07 17:28 更新

说明

  • <link rel="standardhtml" href="xxx"> 将更改为 <link rel="canonical" href="xxx">

  • 过渡期:<link rel="canonical" href="xxx"><link rel="standardhtml" href="xxx">二者存在一个即可,2016.11.01开始,<link rel="canonical" href="xxx">必须存在

  • deadline:2016.10.30

示例

  • 正确:
<!DOCTYPE html>
<html mip>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
        <link rel="stylesheet" type="text/css" href="https://mipcache.bdstatic.com/static/mipmain-v1.1.1.css">
        <link rel="canonical" href="xxx">
        <!-- noscript 标签是为了在不支持script的环境下快速的展现 mip 页面,推荐使用 -->
        <noscript>
            <style mip-officialrelease>
                body {
                    -webkit-animation:none;
                       -moz-animation:none;
                        -ms-animation:none;
                            animation:none
                }
            </style>
        </noscript>
        <style mip-custom>
            p {
                color: #00f;
            }
        </style>
    </head>
    <body>
        <p>Hello World!</p>
    </body>
    <script src="https://mipcache.bdstatic.com/static/mipmain-v1.1.0.js"></script>   
</html>
  • 正确:
<!DOCTYPE html>
<html mip>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
        <link rel="stylesheet" type="text/css" href="https://mipcache.bdstatic.com/static/mipmain-v1.1.1.css">
        <link rel="canonical" href="xxx">
        <link rel="standardhtml" href="xxx">
        <!-- noscript 标签是为了在不支持script的环境下快速的展现 mip 页面,推荐使用 -->
        <noscript>
            <style mip-officialrelease>
                body {
                    -webkit-animation:none;
                       -moz-animation:none;
                        -ms-animation:none;
                            animation:none
                }
            </style>
        </noscript>
        <style mip-custom>
            p {
                color: #00f;
            }
        </style>
    </head>
    <body>
        <p>Hello World!</p>
    </body>
    <script src="https://mipcache.bdstatic.com/static/mipmain-v1.1.0.js"></script>   
</html>
  • 错误
<!DOCTYPE html>
<html mip>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
        <link rel="stylesheet" type="text/css" href="https://mipcache.bdstatic.com/static/mipmain-v1.1.1.css">
        <!-- noscript 标签是为了在不支持script的环境下快速的展现 mip 页面,推荐使用 -->
        <noscript>
            <style mip-officialrelease>
                body {
                    -webkit-animation:none;
                       -moz-animation:none;
                        -ms-animation:none;
                            animation:none
                }
            </style>
        </noscript>
        <style mip-custom>
            p {
                color: #00f;
            }
        </style>
    </head>
    <body>
        <p>Hello World!</p>
    </body>
    <script src="https://mipcache.bdstatic.com/static/mipmain-v1.1.0.js"></script>   
</html>
  • 错误
<!DOCTYPE html>
<html mip>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
        <link rel="stylesheet" type="text/css" href="https://mipcache.bdstatic.com/static/mipmain-v1.1.1.css">
        <link rel="standardhtml" href="xxx">
        <!-- noscript 标签是为了在不支持script的环境下快速的展现 mip 页面,推荐使用 -->
        <noscript>
            <style mip-officialrelease>
                body {
                    -webkit-animation:none;
                       -moz-animation:none;
                        -ms-animation:none;
                            animation:none
                }
            </style>
        </noscript>
        <style mip-custom>
            p {
                color: #00f;
            }
        </style>
    </head>
    <body>
        <p>Hello World!</p>
    </body>
    <script src="https://mipcache.bdstatic.com/static/mipmain-v1.1.0.js"></script>   
</html>
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号