如何标记广告? [英] How to markup advertisement?

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

问题描述

如何标记广告以将其从搜索中排除?

How to markup advertisement to have it excluded from search?

我的具体问题是我在 main 文章元素。从纯粹的语义到现实世界的问题:在Google+,Facebook和Twitter上分享我的页面链接将使用广告图像来表示内容。

My specific problem is that I have the below code outside the main and article elements on my pages. Going from a purely semantic to a real world problem: Sharing a link to my page on Google+, Facebook, and Twitter will use the advertisement image to represent the content.

<aside>
  <a href="http://www.example.com/ad" rel="nofollow">
    <img src="/example_com.png" /></a>
</aside>

社交网络的文档告诉我如何指定要使用的图像。但对于我的大部分内容,没有图像是最好的选择。他们都没有解释如何实现这一目标。

The social networks’ documentation tells me how to specify which image to use. But for much of my content, no image would be the best option. None of them explain how to achieve that.

对于谷歌自定义搜索我可以将我的代码调整为< aside class =nocontent> ; 实现这一目标。但根据Google的文档,这不会影响正常的网络搜索。测试表明,没有一个社交网络也尊重这一点。

For Google Custom Searches I could have tweaked my code to <aside class="nocontent"> to achieve this. But according to Google’s documentation, this does not affect normal web search. Testing shows that none of the social networks respect this either.

推荐答案

嗯,如果我理解你,你想声明语义标记不可索引的广告。

Hmm if I understand you right you want to declare the semantic markup of ads non indexable.

这是我检查的第一个地方 - > http ://schema.org/WPAdBlock

Here's the first place I checked-> http://schema.org/WPAdBlock

这篇关于如何标记广告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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