当前位置:首页 > 笔记 > seo > 正文内容

网站SEO优化——meta添加OG协议分类标签og:type

3年前 (2022-07-28)seo6500

OG协议的释义:

2010年F8会议上Facebook公布了一套开放内容协议(Open Graph Protocol),任何网页只要遵守该协议,SNS(如Fackbook、renren等)就能从页面上提取最有效的信息并呈现给用户。

OG协议的好处:

1、能够正确被蜘蛛抓取您的内容到搜索引擎

2、帮助您的内容更有效的在搜索结构化展现

3、能够正确的分享您的内容到SNS网站

4、帮助您的内容更有效的在SNS网络中传播

OG协议的类型:

  1. og:locale //网站编码类型(网站语言)

  2. og:type //类型 (常用例如:website[首页];article[文章页];book[书籍];movie[电影])

  3. og:title //标题

  4. og:description //页面的简单描述

  5. og:url //当前内容链接

  6. og:video //视频

  7. og:audio //音频

  8. og:photo //图片

  9. og:product //产品

  10. og:image //缩略图

  11. og:link //链接

  12. og:site_name //页面所在网站名

  13. og:audiosrc //音频地址

  14. rr:appid //如果您的网站是CONNECT到renren.com的,请提供该ID

  15. og:videosrc //视频资源链接,例如可是播放视频的flash地址

  16. og:width //视频、图片的宽度

  17. og:height //视频、图片的高度

  18. og:artist //音乐家

  19. og:contentid //内容主体的ID,用来标识当前页面主要内容所处的HTML标签的ID

  20. og:price //产品价格

  21. og:nick //店铺名

  22. og:postfee //运费

  23. og:author  //作者名称

  24. og:release_date  //发布时间

  25. og:novel:category // 小说目录

  26. og:novel:author // 小说作者

  27. og:novel:book_name // 小说书名

  28. og:novel:read_url // 小说阅读地址

  29. og:novel:status // 小说状态

  30. og:novel:update_time // 小说更新时间

  31. og:novel:latest_chapter_name // 小说最新章节

  32. og:novel:latest_chapter_url // 小说最新章节地址

OG协议的举例:

1.png

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer">
<title>标题</title>
<meta name="keywords" content="关键字">
<meta name="description" content="描述">
<link rel="canonical" href="页面地址">
<meta property="og:type" content="article">
<meta property="og:site_name" content="网站名称" />
<meta property="og:title" content="标题">
<meta property="og:description" content="描述">
<meta property="og:image" content="图片">
<meta property="og:width" content="800" />
<meta property="og:height" content="450" />
<meta property="og:url" content="页面地址">
<meta itemprop="name" content="标题" />
<meta itemprop="description" content="描述" />
<meta itemprop="image" content="图片" />
<meta itemprop="thumbnailUrl" content="缩略图片" />
<meta itemprop="url" content="页面地址" />


扫描二维码推送至手机访问。

版权声明:本文由蓝博发布,如需转载请注明出处。

本文链接:https://www.blueboss.cn/p/30.shtml

“网站SEO优化——meta添加OG协议分类标签og:type” 的相关文章

SEO优化中rel=external,noopener和nofollow三个标签的作用详解

SEO优化中rel=external,noopener和nofollow三个标签的作用详解

有比较细心的SEO优化同道可能会发现有的网站在a标签上使用了rel="external",rel="noopener",rel="nofollow"及rel="noreferrer"这些单个的标签或某些组合,为了解决他们...

关于meta name=applicable-device  content=pc

关于meta name=applicable-device content=pc

关于<meta name="applicable-device"content="pc">百度可以通过基本html特征来判断是否适合无线端浏览:PC站:<meta name="applicable-device" cont...

代码meta http-equiv=”Cache-Control” content=”no-siteapp”啥意思 有什么作用?

代码meta http-equiv=”Cache-Control” content=”no-siteapp”啥意思 有什么作用?

代码<meta http-equiv=”Cache-Control” content=”no-siteapp”>啥意思 有什么作用?WordPress主题文件里面一句<meta http-equiv=”Cache-Control” content=”no-siteapp”>到...

站长之家的head

站长之家的head

站长之家的head<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta htt...

懂得生活网的head

懂得生活网的head

懂得生活网的head<head> <link rel="dns-prefetch" href="//www.n6z6.com" /><!--DNS预解析,加速访问--> <link&n...

详解 meta name=viewport content=initial-scale=1, maximum-scale=1, user-scalable=no, width=device-w

详解 meta name=viewport content=initial-scale=1, maximum-scale=1, user-scalable=no, width=device-w

详解 <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"><meta name=&quo...