Social Sharing Tags

Open Graph

When a link is shared on WhatsApp, LinkedIn or Facebook, the preview card (title, description, image) comes from Open Graph meta tags:

<meta property="og:title" content="Learn HTML in 30 Days">
<meta property="og:description" content="Free course with live examples.">
<meta property="og:image" content="https://example.com/cover-1200x630.png">
<meta property="og:url" content="https://example.com/html-course">
<meta property="og:type" content="website">

Twitter / X Cards and Canonical URLs

<meta name="twitter:card" content="summary_large_image">

<!-- the preferred URL when the same page is reachable at several addresses -->
<link rel="canonical" href="https://example.com/html-course">

Tip: Use a 1200×630 image for og:image; it looks good on every platform.