Two common meta
element attributes are:
<meta name="" content="">
and
<meta property="" content="">
what is the difference between meta name and meta property?
Two common meta
element attributes are:
<meta name="" content="">
and
<meta property="" content="">
what is the difference between meta name and meta property?
The
name
attribute is the "usual" way for specifying metadata in HTML. It’s defined in the HTML5 spec.The
property
attribute comes from RDFa.RDFa 1.1 extends HTML5 so that it’s valid to use
meta
andlink
elements in thebody
, as long as they contain aproperty
attribute.You can use both ways, HTML5’s
name
and RDFa’sproperty
, together on the samemeta
element.Note that you might also see
meta
elements with anitemprop
attribute. That would be from Microdata.