DEV Community

Cover image for Building with the right Meta Tags: From empowering Social Media Previews to SEO
Rishi Raj Jain
Rishi Raj Jain

Posted on • Edited on

6 2

Building with the right Meta Tags: From empowering Social Media Previews to SEO

I always felt that I needed a list of tags that I can just copy paste for each blog/article that'll take care of Social Media Previews to my SEO. I present you the best "basic" set of SEO Meta Tags for your article(s).

Descriptive, Author and Article Meta Tags

<title>title</title>
<meta property="title" name="title" content="<title>">
<meta property="description" name="description" content="<description>">
<meta property="author" name="author" content="<author>">
<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1">
<meta property="referrer" name="referrer" content="unsafe-url">
<meta property="article:author" name="article:author" content="https://medium.com/@<medium-handle>">
<meta property="article:published_time" name="article:published_time" content="<date-time>">
Enter fullscreen mode Exit fullscreen mode

Open Graph Tags

WhatsApp Preview

LinkedIn Preview

<!-- Read more on https://ogp.me/ -->
<meta property="og:locale" content="en_IN" />
<meta name="og:type" property="og:type" content="article" />
<meta name="og:title" property="og:title" content="<blog-title>" />
<meta name="og:description" property="og:description" content="<blog-excerpt>" />
<meta name="og:url" property="og:url" content="<blog-link>" />
<meta name="og:image" property="og:image" content="<blog-image>" />
Enter fullscreen mode Exit fullscreen mode

Structured Data

<!-- Read more on https://developers.google.com/search/docs/guides/intro-structured-data -->
<script type="application/ld+json"> 
      {
        "@id": "",
        "@context" : "http://schema.org",
        "@type" : "",
        "name" : "",
        "description": "",
        "url" : "",
        "logo": "",
        "sameAs" : [""]
      }
</script>
Enter fullscreen mode Exit fullscreen mode

Twitter Tags

Twitter Preview

<!-- Read more on https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary -->
<!-- <meta name="twitter:card" content="summary" /> -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@<twitter-id>" />
<meta name="twitter:title" content="<blog-title>" />
<meta name="twitter:description" content="<blog-excerpt>" />
<meta name="twitter:image" content="<blog-image" />
Enter fullscreen mode Exit fullscreen mode

Slack x Twitter Tags

Slack Preview

<!-- Read more on https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254 -->
<meta name="twitter:label1" content="Reading Time" />
<meta name="twitter:data1" content="X minutes" />
<meta name="twitter:label2" content="Written By" />
<meta name="twitter:data2" content="ABCDE" />
Enter fullscreen mode Exit fullscreen mode

Got suggestions to improve? Drop them in comments ✨

Tips

  • Keep the size of :image < 300KB, anything above will not show up on WhatsApp preview image.

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay