What is og tags

Last updated: April 1, 2026

Quick Answer: Open Graph (OG) tags are HTML meta tags that control how content appears when shared on social media platforms. They specify information like title, description, image, and URL to create rich previews.

Key Facts

Overview

Open Graph (OG) tags are HTML meta tags placed in a webpage's head section that control how content displays when shared on social media platforms like Facebook, Twitter, LinkedIn, and Pinterest. Created by Facebook in 2010, these tags provide structured information that social networks use to generate rich previews of shared links.

Essential OG Tags

The four core OG tags are:

Implementation Example

OG tags are implemented in HTML as meta tags within the head section. For example, the meta tag syntax includes properties like property="og:title" with corresponding content values. This simple meta tag implementation allows content creators to customize how their pages appear across social platforms without additional server-side processing.

Advanced OG Tags

Beyond the four essential tags, additional OG properties provide more detailed information:

SEO and Engagement Impact

While OG tags don't directly impact search engine rankings, they significantly affect social media appearance and click-through rates. A well-optimized preview with an attractive image, clear title, and compelling description encourages users to click and visit your content. Proper OG implementation is therefore a crucial component of comprehensive digital marketing strategy.

Related Questions

What is the difference between OG tags and Twitter cards?

OG tags are a general social sharing standard created by Facebook, while Twitter Cards are Twitter-specific meta tags. Many platforms support both, though Twitter Cards provide more control over Twitter previews.

How do I test my OG tags?

Use Facebook's Sharing Debugger, LinkedIn Post Inspector, or Pinterest Pin Inspector to preview how your page appears when shared. These tools validate your tags and show the resulting preview.

What image dimensions are best for OG:image?

Use at least 1200x630 pixels for optimal quality across platforms. Square images (1200x1200) work well for most uses. Keep file size under 5MB for faster loading.

Sources

  1. Open Graph Protocol Public Domain
  2. Facebook - Sharing Webmasters Documentation Public Domain