Microdata 和 RDFa,这两种方式比较类似,都是通过向 HTML 中添加属性的方式来实现结构化数据,RDFa 是HTML5中的拓展功能。这两种方式都是将结构化的数据打散分散在不同的HTML页面中了,这两种方式都各有利弊,可以根据实际的网站情况,选择合适的方式就可以了。
//但采用的是 Microdata 格式 <p itemscope itemprop="organization" itemtype="https:///Organization"> <a href="https:///" itemprop="url"> <span itemprop="name">Ahrefs</span></a> <span itemprop="description">Ahrefs is a software company that develops online SEO tools and free educational materials for marketing professionals.</span> Contact us at: <span itemprop="email">support@</span> </p>