This will help you create a simple card for Twitter - this will also work for WhatsApp and other social media platforms.
Place the following code inside the <head>
element.
<link rel="canonical" href="{link}" />
<meta property="og:url" content="{link}" />
<meta property="og:site_name" content="{name}" />
<meta property="og:title" content="{name}" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="{@twitter_handle}" />
<meta name="twitter:creator" content="{@twitter_handle}" />
<meta property="description" content="{description}" />
<meta property="og:description" content="{description}" />
<meta property="og:image" content="{icon}"/>
<meta property="og:image:secure_url" content="{icon}"/>
Replace {name}
with the page name
Replace {description}
with the short description you want to include for this page
Replace {link}
with the link to the page/site
Replace {icon}
with a link to the icon you would like to display (I recommend 256x256)
You can also replace {@twitter_handle}
with the Twitter handle to the site creator and/or author of said page.
If you don't want this, just remove those two lines.