Domanda

which one of these format is correct?

  <meta itemprop="thumbnailurl" content="/design/glogo.jpg" />
  <meta itemprop="sameas" content="http://examle.com" />
  <meta itemprop="image" content="/design/glogo.jpg" />
  <meta property="og:url" content="http://127.0.0.1/" />

or

  <link itemprop="thumbnailurl" content="/design/glogo.jpg" />
  <link itemprop="sameas" content="http://examle.com" />
  <link itemprop="image" content="/design/glogo.jpg" />
  <link property="og:url" content="http://127.0.0.1/" />
È stato utile?

Soluzione

If the value is an URI, use link.

But note that using the content attribute on link is only allowed in RDFa. You probably want to use the href attribute instead:

<link itemprop="thumbnailurl" href="/design/glogo.jpg" />
<link itemprop="sameas" href="http://examle.com" />
<link itemprop="image" href="/design/glogo.jpg" />
<link property="og:url" href="http://127.0.0.1/" />
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top