结构化标准seo与meta 标签大全整理

2022-11-07 22:35:16 765 转载:http://www.kaotop.com/it/819900.html

本篇主要在介绍,如何正确设定分享文章到google plus 以及facebook 的标题、缩图与内文概要,因为有了这些正确的设定,分享到社群网站就不会跳出莫名其妙的缩图,同时在google 的搜寻,也会呈现作者的大头照与姓名,这些都是会吸引更多使用者浏览的好方法。


这是在我的网站header 里头,所加入的meta 标签:

1

2

3

4

5

6

7

8

9

10

11

12

;metaname="author"content="作者名稱";

;metaname="copyright"content="版權所有人名稱";

;linkrel="author"href="google;plus;個人頁網址/posts";

;linkrel="publisher"href="google;plus;個人頁網址";

;metaname="description"content="網頁描述";

;metaitemprop="name"content="網站名稱或標題";

;metaitemprop="image"content="要顯示的縮圖網址";

;metaitemprop="description"content="網頁描述";

;metaproperty="og:title"content="網站名稱或標題";

;metaproperty="og:url"content="網址";

;metaproperty="og:image"content="要顯示的縮圖網址";

;metaproperty="og:description"content="網頁描述";


其中以下这三行,是写给搜寻引擎看的(特别是google ),当中最重要的,就是rel="author"这一句,有写这一段,接下来我们就可以去去google plus进行互相认证的作业(也就是要让google plus确认这个网页的作者是你)

1

2

3

;linkrel="author"href="google;plus;個人頁網址/posts";

;linkrel="publisher"href="google;plus;個人頁網址";

;metaname="description"content="網頁描述";


而认证的过程,可以点选google结构化资料测试工具连结,进行相关的认证作业,认证的过程其实也很简单,就是进入google plus的个人页面,点选「帐户」,点选「编辑个人资料」,接着将「连结」里头的「作品刊载于」,新增目前的网站,接着google plus就会去查询你的网站是否有放上rel="author",如果有,就完成啰!

而这三行是写给google plus 看的,分享到google plus 上头,就会正确显示

1

2

3

;metaitemprop="name"content="網站名稱或標題";

;metaitemprop="image"content="要顯示的縮圖網址";

;metaitemprop="description"content="網頁描述";

而这四行是写给facebook看的,分享到facebook上头,就会正确显示,如果发现都已经照着设定了,分享时仍有问题,可以点选Facebook Debugger进行查询和重新设定,完成后再次分享应该就不会有问题啰!

1

2

3

4

;metaproperty="og:title"content="網站名稱或標題";

;metaproperty="og:url"content="網址";

;metaproperty="og:image"content="要顯示的縮圖網址";

;metaproperty="og:description"content="網頁描述";

当然meta 标签绝对不止这一些,因为除了facebook 和google plus,还有一个世界前三大的社群平台twitter,以下列出在这些平台上完整的meta 标签语法,如果有需要也可以都加进自己的网站喔!

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

;--;Update;your;html;tag;to;include;the;itemscope;and;itemtype;attributes.;--;

;htmlitemscopeitemtype="http://schema.org/Article";


;--;Place;this;data;between;the;;head;;tags;of;your;website;--;

;title;Page;Title.;Maximum;length;60-70;characters;/title;

;metaname="description"content="Page;description.;No;longer;than;155;characters."/;


;--;Google;Authorship;and;Publisher;Markup;--;

;linkrel="author"href=";https://plus.google.com/[Google+_Profile]/posts"/;

;linkrel="publisher"href=”;https://plus.google.com/[Google+_Page_Profile]"/;


;--;Schema.org;markup;for;Google+;--;

;metaitemprop="name"content="The;Name;or;Title;Here";

;metaitemprop="description"content="This;is;the;page;description";

;metaitemprop="image"content=";http://www.example.com/image.jpg";


;--;Twitter;Card;data;--;

;metaname="twitter:card"content="summary_large_image";

;metaname="twitter:site"content="@publisher_handle";

;metaname="twitter:title"content="Page;Title";

;metaname="twitter:description"content="Page;description;less;than;200;characters";

;metaname="twitter:creator"content="@author_handle";

;--;Twitter;summary;card;with;large;image;must;be;at;least;280x150px;--;

;metaname="twitter:image:src"content=";http://www.example.com/image.html";


;--;Open;Graph;data;--;

;metaproperty="og:title"content="Title;Here"/;

;metaproperty="og:type"content="article"/;

;metaproperty="og:url"content=";http://www.example.com/"/;

;metaproperty="og:image"content=";http://example.com/image.jpg"/;

;metaproperty="og:description"content="Description;Here"/;

;metaproperty="og:site_name"content="Site;Name,;i.e.;Moz"/;

;metaproperty="article:published_time"content="2013-09-17T05:59:00+01:00"/;

;metaproperty="article:modified_time"content="2013-09-16T19:08:47+01:00"/;

;metaproperty="article:section"content="Article;Section"/;

;metaproperty="article:tag"content="Article;Tag"/;

;metaproperty="fb:admins"content="Facebook;numberic;ID"/;

*特别说明:本文来自网络,如有侵权,请联系我们删除,非常感谢!