Schema.org 组织标记问题 [英] Schema.org Organizational markup Issue

查看:49
本文介绍了Schema.org 组织标记问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的网站上实现这一点:

http://googlewebmastercentral.blogspot.in/2013/05/using-schemaorg-markup-for-organization.html

我对此有一个快速的疑问:

是否必须在主页上的页面元素上标记现有可见?假设我们在主页上没有可见的徽标图像,我们是否可以在正文部分的一段代码中添加单独的徽标图像,如下所示:

<a itemprop="url" href="http://myDomain.com/"></a><img itemprop="logo" src="http://myDomain.com/logo.png"/>

因此,如果我将 CSSdisplay:none"添加到我的 DIV 并放置在正文的任何​​位置,Google 会考虑将其用于组织标记吗?

CSS 样式 "display:none" 可以从 CSS 文件中添加,这行得通吗?

解决方案

您可以简单地使用 link (对于 URI) 或 meta(对于文本)元素.默认情况下,它们通常是隐藏的.如果用于微数据,linkmeta 允许在 中正文.

假设您想在视觉上隐藏 URL 和徽标:

<link itemprop="url" href="http://example.com/"><link itemprop="logo" href="http://example.com/logo.png">

解析器(如搜索引擎)是否考虑到这一点取决于他们.它是有效的 HTML + 微数据.

I was trying to implement this for my website:

http://googlewebmastercentral.blogspot.in/2013/05/using-schemaorg-markup-for-organization.html

I have a quick doubt on this:

Is it compulsory to tag existing visible on page elements on homepage?? say if we don't have a visible logo image on homepage, Can we add a separate logo image in a piece of code in body section as mentioned like :

<div itemscope itemtype="http://schema.org/Organization" style="display:none;">
 <a itemprop="url" href="http://myDomain.com/"></a>
<img itemprop="logo" src="http://myDomain.com/logo.png" /> </div>

So, if i add CSS "display:none" to my DIV and place anywhere on body, Will it be considered by google for Organizational markup??

CSS style "display:none" can be added from CSS file, Will this work?

解决方案

Instead of hiding an element, you could simply use link (for URIs) or meta (for text) elements. They are typically hidden by default. If used for Microdata, link and meta are allowed in body.

Assuming that you want to visually hide the URL as well as the logo:

<div itemscope itemtype="http://schema.org/Organization">
 <link itemprop="url" href="http://example.com/">
 <link itemprop="logo" href="http://example.com/logo.png">
</div>

If this is considered by parsers (like search engines) is up to them. It’s valid HTML + Microdata.

这篇关于Schema.org 组织标记问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆