meta name=applicable-device content使用方法說明

|

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優化效果。

結語:切記不要搞混亂了使用,比如不要出現HTML頁面是是電腦標籤,Sitemap協議裡是移動標籤,如果掌握不了使用就只在HTML頁面設置即可,Sitemap協議可以不設置。