Instantly share code, notes, and snippets.
Last active
March 14, 2018 14:19
-
Star
3
(3)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save dubravkoL/4fda2ed2f008582ccd3e to your computer and use it in GitHub Desktop.
HEAD html - Must-Have Social Meta Tags for Twitter, Google+, Facebook and More
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
<head> | |
<!--///////// Minimum Social Media Tag Template: 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." /> | |
<!-- Twitter Card data --> | |
<meta name="twitter:card" value="summary"> | |
<!-- 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/" /> | |
<meta property="og:image" content="http://example.com/image.jpg" /> | |
<meta property="og:description" content="Description Here" /> | |
<!--///////// end Minimum Social Media Tag Template: Article //////////--> | |
<!--///////// Standard Social Media Tag Template: 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." /> | |
<!-- Twitter Card data --> | |
<meta name="twitter:card" content="summary"> | |
<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 images must be at least 120x120px --> | |
<meta name="twitter:image" content="http://www.example.com/image.jpg"> | |
<!-- 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/" /> | |
<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="fb:admins" content="Facebook numeric ID" /> | |
<!--///////// end Standard Social Media Tag Template: Article //////////--> | |
<!-- ///////// Full Social Media Tag Template: Article ///////// --> | |
<!-- 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/" /> | |
<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" /> | |
<!-- ///////// end Full Social Media Tag Template: Article ///////// --> | |
<!--///////// Product Social Media Tag Template /////////--> | |
<!-- Update your html tag to include the itemscope and itemtype attributes. --> | |
<html itemscope itemtype="http://schema.org/Product"> | |
<!-- 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="product"> | |
<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"> | |
<meta name="twitter:image" content="http://www.example.com/image.html"> | |
<meta name="twitter:data1" content="$3"> | |
<meta name="twitter:label1" content="Price"> | |
<meta name="twitter:data2" content="Black"> | |
<meta name="twitter:label2" content="Color"> | |
<!-- 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/" /> | |
<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="og:price:amount" content="15.00" /> | |
<meta property="og:price:currency" content="USD" /> | |
<!--///////// end Product Social Media Tag Template /////////--> | |
<!-- A. Twitter Validation Tool --> | |
<!-- https://dev.twitter.com/docs/cards/validation/validator --> | |
<!-- B. Facebook Debugger --> | |
<!-- https://developers.facebook.com/tools/debug --> | |
<!-- C. Google Structured Data Testing Tool --> | |
<!-- http://www.google.com/webmasters/tools/richsnippets --> | |
<!-- D. Pinterest Rich Pins Validator --> | |
<!-- http://developers.pinterest.com/rich_pins/validator/ --> | |
<!-- Twitter thumbnail: 120x120px --> | |
<!-- Twitter large image: 280x150px --> | |
<!-- Facebook: Standards vary, but an image at least 200x200px works best. Facebook recommends large images up to 1200x630px wide. --> | |
<!--///////// Full spec //////////--> | |
<!--///////// Full spec //////////--> | |
<!--///////// Full spec //////////--> | |
<!--///////// Full spec //////////--> | |
<!--///////// Full spec //////////--> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<base href="http://www.example.com/"> | |
<meta http-equiv="Content-Language" content="hr" /> | |
<meta http-equiv="pragma" content="no-cache" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta http-equiv="refresh" content="500" /> <!-- Refresh document every 500 seconds --> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> | |
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> | |
<meta name="description" content="Prijenos uživo"> | |
<meta content="index, follow" name="robots"> | |
<meta content="article"> | |
<meta name="identifier-url" content="http://www.example.com/" /> | |
<meta name="title" content="example" /> | |
<meta name="description" content="Tools for webmasters" /> | |
<meta name="abstract" content="Tools for webmasters" /> | |
<meta name="author" content="My Name" /> | |
<meta name="revisit-after" content="15" /> | |
<meta name="copyright" content="© 2014 example" /> | |
<meta name="robots" content="All" /> | |
<meta name="medium" content="video" /> | |
<meta name="video_height" content="360" /> | |
<meta name="video_width" content="640" /> | |
<meta name="video_type" content="application/x-shockwave-flash" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="css/main.css" rel="stylesheet"> | |
<link href="css/font-awesome.min.css" rel="stylesheet"> | |
<meta property="og:site_name" content="Example" /> | |
<meta property="og:description" content="Sean Connery found fame and fortune as the suave, sophisticated British agent, James Bond." /> | |
<meta property="og:image" content="" /> | |
<meta property="og:image" content="http://example.com/ogp.jpg" /> | |
<meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" /> | |
<meta property="og:image:type" content="image/jpeg" /> | |
<meta property="og:image:width" content="400" /> | |
<meta property="og:image:height" content="300" /> | |
<meta property="og:url" content="" /> | |
<meta property="og:audio" content="http://example.com/sound.mp3" /> | |
<meta property="og:audio:secure_url" content="https://secure.example.com/sound.mp3" /> | |
<meta property="og:audio:type" content="audio/mpeg" /> | |
<meta property="og:type" content="video.other" /> // website | |
<meta property="og:title" content="" /> | |
<meta property="og:video" content="http://example.com/movie.swf" /> | |
<meta property="og:video:secure_url" content="https://secure.example.com/movie.swf" /> | |
<meta property="og:video:type" content="application/x-shockwave-flash" /> | |
<meta property="og:video:width" content="400" /> | |
<meta property="og:video:height" content="300" /> | |
<meta property="fb:app_id" content="" /> | |
<meta property="og:determiner" content="the" /> | |
<meta property="og:locale" content="en_GB" /> | |
<meta property="og:locale:alternate" content="fr_FR" /> | |
<!-- [ if lt IE 9] --> | |
<script src="js/vendor/html5shiv.min.js"></script> | |
<script src="js/vendor/respond.min.js"></script> | |
<!-- [endif] --> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment