Meta tags help Google and social apps understand and show your page.
For Google
<title>— under about 60 characters, with your main keyword.<meta name="description">— about 150 characters; shown under the title in results.<link rel="canonical">— the main address of the page, to avoid duplicate pages.<meta name="robots" content="noindex">— hides a page from Google (for example a thank-you page).
For WhatsApp, Facebook and LinkedIn previews (Open Graph)
og:title,og:description,og:image,og:url
Tip: Use the AgyanAdda Meta Tag Generator and Open Graph Preview tools to create and test these tags.
Example
Example — SEO and social meta tags
HTML
<head>
<title>Online PHP Course in Patna | AgyanAdda</title>
<meta name="description" content="Live online PHP and Laravel training with projects, doubt sessions and certificate.">
<link rel="canonical" href="https://agyanadda.com/online-training">
<meta property="og:title" content="Online PHP Course | AgyanAdda">
<meta property="og:description" content="Learn PHP with live classes and real projects.">
<meta property="og:image" content="https://agyanadda.com/images/php-course.jpg">
<meta property="og:url" content="https://agyanadda.com/online-training">
</head>