Shree krishna lamichhane
Shree Krishna Lamichhane

Shree Krishna Lamichhane

Best Meta tags for SEO

Shree krishna lamichhane
·Sep 15, 2022·

3 min read

Subscribe to my newsletter and never miss my upcoming articles

Full Social Media Tag Template: Article

<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<!-- 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.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="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" />

Product Social Media Tag Template

<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<!-- 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.jpg">
<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" />

For Laravel Blade

        // Basic
        $page['title'] = "Page Title. Max: 60-70 Chars";
        $page['description'] = "Page Description. No longer than 155 chars.";
        $page['keywords'] = "keywords,that,represnets,the,website,content";
        $page['author'] = "Author of Page";
        $page['copyright'] = "Copyright Author";

        // SEO
        // index/noindex , follow/nofollow
        $page['robots'] = "index/noindex or follow/nofollow";

        // OpenGraph
        $page['og:title'] = "Title";
        $page['og:locale'] = "en_US";
        $page['og:description'] = "Page description";
        $page['og:url'] = "https://example.com/current/url";
        $page['og:site_name'] = "Name of site";

        $page['og:type'] = "article";
        // Options:
        // Music =
        // [music.song](https://ogp.me/#type_music.song), [music.album](https://ogp.me/#type_music.album),
        // [music.playlist](https://ogp.me/#type_music.playlist), [music.radio_station](https://ogp.me/#type_music.radio_station)
        // Video =
        // [video.movie](https://ogp.me/#type_video.movie), [video.episode](https://ogp.me/#type_video.episode),
        // [video.tv_show](https://ogp.me/#type_video.tv_show), [video.other](https://ogp.me/#type_video.other)// Other =
        //[article](https://ogp.me/#type_article), [book](https://ogp.me/#type_book),
        // [profile](https://ogp.me/#type_profile), [website](https://ogp.me/#type_website)

        $page['og:image'] = "";
        $page['og:image:secure_url'] = "";
        $page['og:image:width'] = "";
        $page['og:image:height'] = "";
        $page['og:image:alt'] = "";
        $page['og:image:type'] = "";

        // Twitter
        // Options: summary, summary_large_image, app, player
        $page['twitter:card'] = "summary_large_image";
        $page['twitter:title'] = "Page Title. Max 60-70 chars";
        $page['twitter:description'] = "Page description less than 200 characters";
        $page['twitter:site'] = "@publisher_handle";
        $page['twitter:creater'] = "@author_handle";
        // Supported Formats = JPG,PNG,WEBP and GIF <5MB
        $page['twitter:image'] = "https://example.com/image.png";
        $page['twitter:image:alt'] = "Description of image. Max 420 characters";

        // For Google+
        $page['itemprop:name'] = "Name or Title";
        $page['itemprop:description'] = "Page description";
        $page['itemprop:image'] = "https://example.com/image.png";
 
Share this