Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's 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?

like image 797
weaveoftheride Avatar asked Mar 12 '14 11:03

weaveoftheride


People also ask

What is meta property used for?

<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.

What is meta name title?

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).

What is the difference between meta and metadata?

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.

What does meta name description mean?

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.


1 Answers

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.

like image 154
unor Avatar answered Oct 12 '22 16:10

unor