Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
dannyrb
/
seo-meta-tags.html
Created
Nov 9, 2015
Star
3
Fork
0
Star
Code
Revisions
1
Stars
3
Embed
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Download ZIP
Adding OpenGraph, Twitter Card, and Schema.org (Google) tags to a blog article.
Raw
seo-meta-tags.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<
html
itemscope
itemtype
="
http://schema.org/Article
"
>
<!-- Place this data between the <head> tags of your website -->
<
title
>
Page Title. Maximum length 60-70 characters
</
title
>
<
meta
name
="
description
"
content
="
Page description. No longer than 155 characters.
" />
<!-- Schema.org markup for Google+ -->
<
meta
itemprop
="
name
"
content
="
The Name or Title Here
"
>
<
meta
itemprop
="
description
"
content
="
This is the page description
"
>
<
meta
itemprop
="
image
"
content
="
http://www.example.com/image.jpg
"
>
<!-- Twitter Card data -->
<
meta
name
="
twitter:card
"
content
="
summary_large_image
"
>
<
meta
name
="
twitter:site
"
content
="
@publisher_handle
"
>
<
meta
name
="
twitter:title
"
content
="
Page Title
"
>
<
meta
name
="
twitter:description
"
content
="
Page description less than 200 characters
"
>
<
meta
name
="
twitter:creator
"
content
="
@author_handle
"
>
<!-- Twitter summary card with large image must be at least 280x150px -->
<
meta
name
="
twitter:image:src
"
content
="
http://www.example.com/image.html
"
>
<!-- Open Graph data -->
<
meta
property
="
og:title
"
content
="
Title Here
" />
<
meta
property
="
og:type
"
content
="
article
" />
<
meta
property
="
og:url
"
content
="
http://www.example.com/
" />
<!-- 1200 x 630 For optimal sharing -->
<
meta
property
="
og:image
"
content
="
http://example.com/image.jpg
" />
<
meta
property
="
og:description
"
content
="
Description Here
" />
<
meta
property
="
og:site_name
"
content
="
Site Name, i.e. Moz
" />
<
meta
property
="
article:published_time
"
content
="
2013-09-17T05:59:00+01:00
" />
<
meta
property
="
article:modified_time
"
content
="
2013-09-16T19:08:47+01:00
" />
<
meta
property
="
article:section
"
content
="
Article Section
" />
<
meta
property
="
article:tag
"
content
="
Article Tag
" />
<
meta
property
="
fb:admins
"
content
="
Facebook numberic ID
" />
Sign up for free
to join this conversation on GitHub
. Already have an account?
Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.