我想用Zend farmework headMeta添加(问题是:如何创建“itemprop”): - 在http://www.google.com/webmasters/+1/button/
中签入google generator + html5<meta itemprop="name" content="Title of your content">
<meta itemprop="description" content="This would be a description of the content your users are sharing">
<meta itemprop="image" content="ourimage.jpg">
编辑: 我想为google plus执行此操作:http://www.google.com/webmasters/+1/button/
由于
答案 0 :(得分:-1)
我发现您已将问题标记为“html5”。两天前我遇到过类似的问题。你不能在HTML5中使用“itemprop”。相反,您可以像这样使用元“名称”:
//此处$ key类似于“description,value - &gt;”您内容的标题“ $ this-&gt; headMeta() - &gt; appendName($ key,$ value);
如果你想为Facebook做这个,那就是为了让HTML5验证器不会抛出很多错误。