大网数据广告活动
网站运营与故障问答

What are the advantages of Schema.org's Microdata vs. Microformats et al?

· 52CE 我爱测

I’m confused about which microdata methodologies to employ on my site. Is there an advantage to implementing the attributes from Schema.org , vs. one like Microformats ?

问题原文

原帖链接 · JP Silvashy · CC BY-SA 3.0

I’m confused about which microdata methodologies to employ on my site.

Is there an advantage to implementing the attributes from Schema.org, vs. one like Microformats?

社区高分解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

Google recommends using microdata, but it does support three formats: microdata, microformats, and RDFa. A big reason to choose microdata would be that the examples that Google gives on it's website and those on schema.org are in the microdata format.

Here is a site that has a huge table of the various advantages and disadvantages of the three formats. The items that I find most compelling on the table are "relative complexity", "target languages", and "new attributes".

Microformat is the least complex, works with XHTML1, HTML4, HTML5, and XHTML5, and does not add any additional tag attributes into your document. You do have to rename some of your html class names and change your CSS to support it.

Microdata is slightly more complex and has some additional capabilities, but only works with HTML5, and XHTML5. It gets around having to rename some HTML classes and change CSS by addition a few additional tag attributes.

RDFa is even more complex, but adds even more additional capabilities and works with a large number of doctypes.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2013-05-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。