两个常见的meta
元素属性为:
<meta name="" content="">
和
<meta property="" content="">
what is the difference between meta name 和 meta property?
两个常见的meta
元素属性为:
<meta name="" content="">
和
<meta property="" content="">
what is the difference between meta name 和 meta property?
name
属性是在HTML中指定元数据的"常用"方式.是defined in the HTML5 spec.
property
属性来自RDFa.
RDFa 1.1扩展了HTML5,因此it’s valid to use meta
and link
elements in the body
,只要它们包含property
属性.
你可以同时使用HTML5的name
和RDFa的property
together on the same meta
element.
请注意,您可能还会看到meta
elements with an itemprop
attribute.那是从Microdata开始的.