meta name="applicable-device"content="pc,mobile"自适应页面标签是百度给出的针对网站移动端SEO优化的代码标签,放在HTML中使用,另外还有3种页面标签。
<meta name="applicable-device"content="pc">电脑PC端页面标签。
<meta name="applicable-device"content="mobile">手机移动端页面标签。
<meta name="applicable-device"content="htmladapt">代码适配页面标签。
以上属于Meta元素标签代码,可以根据网站端页直接复制粘贴使用,同时建议Sitemap协议也采用相同含义的标签注明,如下示例:
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/">
<url>
<loc>http://m.example.com/index.html</loc>
<mobile:mobile type="mobile"/>(移动页面)
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/index.html</loc>
<mobile:mobile type="pc"/>(电脑页面)
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/autoadapt.html</loc>
<mobile:mobile type="pc,mobile"/>(自适应页面)
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/htmladapt.html</loc>
<mobile:mobile type="htmladapt"/>(代码适配页面)
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>
两者不同使用地方都是告诉搜索引擎这是哪种页面,区分页面特征,让搜索引擎更直接准确的理解页面的属性和价值,促进SEO优化效果。
SEO私馆结束语:切记不要搞混乱了使用,比如不要出现HTML页面是是电脑标签,Sitemap协议里是移动标签,如果掌握不了使用就只在HTML页面设置即可,Sitemap协议可以不设置。