HTML5有效谷歌+;按钮-属性rel的错误值发布器
我最近将我的网站从xhtml过渡到html5。特别是,我可以使用有效的块级锚定标记<代码> 我的代码:HTML5有效谷歌+;按钮-属性rel的错误值发布器,html,google-plus-one,Html,Google Plus One,我最近将我的网站从xhtml过渡到html5。特别是,我可以使用有效的块级锚定标记 我的代码: <link href="https://plus.google.com/xxxxxxxxxxxxxxxx" rel="publisher" /> <a href="https://plus.google.com/xxxxxxxxxxxxxxx?prsrc=3" style="text-decoration:none;"> <img src="https://ssl.
<link href="https://plus.google.com/xxxxxxxxxxxxxxxx" rel="publisher" />
<a href="https://plus.google.com/xxxxxxxxxxxxxxx?prsrc=3" style="text-decoration:none;">
<img src="https://ssl.gstatic.com/images/icons/gplus-16.png" alt="" style="border:0;width:16px;height:16px;"/>
</a>
我不知道如何以兼容html5的方式实现这一点。有人能帮忙吗?1st)在内:
2nd)在
内的任何位置:
此代码是有效的,并且具有“朋友的”
您可以更改https://plus.google.com/u/1/+StackExchange/
用于您想要的任何google+url(https://plus.google.com/xxxxxxxxxxxxxxxx/
)
谷歌发送帮助:
您需要将?rel=author
添加到
好吧,您必须在头部标签和身体标签内添加两个链接,如下所示:
<head>
<link href='https://plus.google.com/xxxxxxxxxxxxxxxxx' itemprop='publisher'/>
</head>
之后,在正文中使用google+格式。它应该在主体标签下面:
<body>
<a href="https://plus.google.com/xxxxxxxxxxxxxxxxx" rel="publisher" />
.....
.....
.....
</body>
但是,我使用上面的代码,它工作得很好:(你最好去StackOverflow,因为这是一个编程问题,而不是站长的问题。@Christopher-我实际上是有意选择WM的,因为它似乎是站长们熟悉的。如果我错了,我希望有一个调任的标志。我在这里没有什么代表性。我认为没有任何tid我会忽略(validator.nu?)中的错误,并密切关注谷歌文档,看看他们是否会更新代码以使用有效的rel
值(或切换到其他类似数据发布者的值)。
<a href="https://plus.google.com/12345?rel=author">
<img src="https://ssl.gstatic.com/images/icons/gplus-16.png"/>
</a>
<head>
<link href='https://plus.google.com/xxxxxxxxxxxxxxxxx' itemprop='publisher'/>
</head>
<body>
<a href="https://plus.google.com/xxxxxxxxxxxxxxxxx" rel="publisher" />
.....
.....
.....
</body>
<body itemscope="" itemtype="http://schema.org/Blog">