WEB-11Recommended
Control how shared links look
Give every page Open Graph tags (type, title, description, url, and an image with width, height and alt). Shared links then show the page's title, description and image.
How to do it
Set og:url to the page's canonical address, as in make every canonical signal agree. Give og:image an absolute https:// address. Use a 1200×630 PNG or JPEG under 300 KB, with its width, height and alt text. Add twitter:card set to summary_large_image.
Examples
HTML example
<meta property="og:type" content="website">
<meta property="og:title" content="Pricing · Example">
<meta property="og:description" content="Plans for small teams and growing companies.">
<meta property="og:url" content="https://example.com/pricing">
<meta property="og:image" content="https://example.com/og/pricing.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Three plans side by side">
<meta name="twitter:card" content="summary_large_image">
How to check
A build gate finds the eight og: tags and twitter:card on every page, with og:url equal to the canonical link. Each og:image answers 200 with an image type under 300 KB.
Sources
Related rules
- WEB-7 Write a summary for search results in Website
- WEB-87 Make every canonical signal agree in Website
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/html-basics/open-graph">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.