luca
luca

Reputation: 37146

What is the attribute property="og:title" inside meta tag?

I have this extract of website source code:

<meta content="This is a basic text" property="og:title" />

What does this property attribute stand for, and what is its purpose?

Upvotes: 193

Views: 250354

Answers (5)

aggregate1166877
aggregate1166877

Reputation: 3201

A picture is worth a thousand words, so here is StackOverflow's og: info as displayed in Telegram:

enter image description here

In a nutshell, it augments how URLs are displayed / can be interacted with in apps, making them richer and prettier.

See The Open Graph protocol for more information.

Upvotes: 4

ArunValaven
ArunValaven

Reputation: 1969

A degree of control is possible over how information travels from a third-party website to Facebook when a page is shared (or liked, etc.). In order to make this possible, information is sent via Open Graph meta tags in the <head> part of the website’s code.

Upvotes: 4

Marek Musielak
Marek Musielak

Reputation: 27142

og:title is one of the open graph meta tags. og:... properties define objects in a social graph. They are used for example by Facebook.

og:title stands for the title of your object as it should appear within the graph (see here for more http://ogp.me/ )

Upvotes: 155

Neddy
Neddy

Reputation: 503

The property in meta tags allows you to specify values to property fields which come from a property library. The property library (RDFa format) is specified in the head tag.

For example, to use that code you would have to have something like this in your <head tag. <head xmlns:og="http://example.org/"> and inside the http://example.org/ there would be a specification for title (og:title).

The tag from your example was almost definitely from the Open Graph Protocol, the purpose is to specify structured information about your website for the use of Facebook (and possibly other search engines).

Upvotes: 19

Shadow Wizzard
Shadow Wizzard

Reputation: 66388

Probably part of Open Graph Protocol for Facebook.

Edit: guess not only Facebook - that's only one example of using it.

Upvotes: 2

Related Questions