start learning
Image 1
320102669085

Meta Open Graph Tags (for social media)

Role: Enhances how links are displayed on social media platforms.
Importance: Improves click-through rates from social media, indirectly supporting SEO through increased traffic.



  <meta property="og:title" content="Page Title">
<meta property="og:description" content="Page Description">
<meta property="og:image" content="http://example.com/image.jpg">
<meta property="og:url" content="http://example.com">

Meta Open Graph Tags (for social media) must be placed between the <head> and </head> as follow:


<!DOCTYPE html>
<html>
<head>
  <meta property="og:title" content="Page Title">
<meta property="og:description" content="Page Description">
<meta property="og:image" content="http://example.com/image.jpg">
<meta property="og:url" content="http://example.com">
<title>Sample Page</title>
</head>
<body>
      <!-- body content here -->
<footer>
        <!-- Footer content here -->
    </footer>
</body>
</html>
×