微专业数据分析师 数据资料
In HTML most tags are semantic: that is, they carry meaning, but there is no way to provide meaning for every piece of content. This impoverishes the web: machine-readable tags that provide context make for a richer, more semantic internet. But short of an XML utopia, there's no way to cover every possibility.
在HTML中,大多数标签都是语义的:也就是说,它们带有意义 ,但是没有办法为每段内容提供意义。 这使网络变得贫穷:提供上下文的机器可读标签构成了更丰富,更语义化的互联网。 但是缺少XML乌托邦,就没有办法涵盖所有可能性。
Instead, there are several measures that add to, or extend, the semantics of web pages:
相反,有几种措施可以增加或扩展网页的语义:
Microformats extend tags via special values for
class
andid
attributes. Microformats have strong support by Google, Facebook and YouTube through schemas like hcard (to represent people, companies, organizations, and places), calendar (for events), recipe, and XFN (to diagram relationships between people).微格式通过
class
和id
属性的特殊值扩展标签。 Google,Facebook和YouTube通过hcard (代表人员,公司,组织和场所), 日历 (用于事件), 配方和XFN (用于绘制人与人之间的关系)等模式对微格式提供了强大的支持。RDFa is another means of providing context to tags via values added to
class
attributes, currently used to indicate Creative Commons licenses, amongst other purposes.RDFa是通过添加到
class
属性的值向标签提供上下文的另一种方法,当前用于指示Creative Commons许可等。Unlike meta tags, microdata is written in the body of an HTML document; unlike microformats and RDFa, it does not abuse
class
, instead using attributes such asitemscope
anditem type
, with established, central schemas such as schema.org and data-vocabulary.org.与元标记不同, 微数据是写在HTML文档的正文中的。 与微格式和RDFa不同,它不会滥用
class
,而是使用诸如itemscope
和item type
class
属性以及已建立的中央模式(例如schema.org和data-vocabulary.org) 。
Which system you use depends on what you are trying to do:
您使用哪种系统取决于您要执行的操作:
-
Want to add a Creative Commons license?
是否要添加知识共享许可?
- Use RDFa, plus a public notification.
- 使用RDFa,以及公共通知。 Making a HTML page? 制作HTML页面?
- Use microdata, adding meta tags and RDFa as they are supported.
- 使用微数据,添加受支持的元标记和RDFa。
翻译自: https://thenewcode.com/344/Microdata-Metadata-For-Content
微专业数据分析师 数据资料