Two common meta
element attributes are:
<meta name="" content="">
and
<meta property="" content="">
what is the difference between meta name and meta property?
<meta> tags always go inside the <head> element, and are typically used to specify character set, page description, keywords, author of the document, and viewport settings. Metadata will not be displayed on the page, but is machine parsable.
A meta title (also called title tag) is an element in the head section of an HTML document that defines the title of each page of a website. It is retrieved by web browsers and also used by search engines such as Google to display a webpage in search results (SERPs).
Meta is a prefix that in most information technology usages means "an underlying definition or description." Metadata summarizes basic information about data, which can make finding and working with particular instances of data easier. This element is used to add a comment to an HTML document.
The Meta name Description is an HTML element that summarizes your web page. Search engines typically show the Meta description in search results below your Title tag. Google does not use the Meta description as a ranking signal; still, it has a massive effect on your page CTR because it shows up in search results.
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
and link
elements in the body
, as long as they contain a property
attribute.
You can use both ways, HTML5’s name
and RDFa’s property
, together on the same meta
element.
Note that you might also see meta
elements with an itemprop
attribute. That would be from Microdata.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With