पाठ 6 / 32
ट्विटर कार्ड्स
ट्विटर/X पर शेयर किए जाने पर अपने कंटेंट को कैसे दिखाया जाए, इसे अनुकूल करें।
ट्विटर कार्ड्स की अवलोकन
Twitter Cards are meta tags that make your tweets stand out with rich media — images, videos, or summaries. Without cards, a tweet is just a link with plain text.
ट्विटर कार्ड मार्कअप
Use twitter: meta tags to define card type, title, description, and image. The "summary_large_image" card is most visually appealing.
<head>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@yourusername">
<meta name="twitter:title" content="10 CSS Tips Every Developer Should Know">
<meta name="twitter:description" content="Master CSS Layout, Flexbox, Grid, and more with practical examples.">
<meta name="twitter:image" content="https://example.com/css-tips-banner.jpg">
<meta name="twitter:image:alt" content="CSS Tips Banner">
</head>ट्विटर कार्ड्स को मान्य करें
Use Twitter's Card Validator tool to test your markup before deploying. Fix any warnings or errors to ensure cards render correctly.