✎Meta Tags
- On-Page
- For...
- meta title: 50-60(max.75) characters. e.g. Your page title | Your brand name
- meta description: 135-160(For mobile, <130) characters. Avoid duplicated description over pages.(Google can penalize your site for it.)
- each content-oriented page, minimum 400 words of content to be indexed correctly. But 1000+ is recommended.
- URL...less than 90 characters are recommended.
Dynamic URL is not recommended for SEO. Consider using perma-links. e.g. Apache: mod_rewrite - On-Site
- The structure of the webpage. Avoid duplicated pages, clear structure for crawlers, internal linking.
robots.txt
sitemap.xml - Off-Site
- Outside of the webpage. Third parties, other webpages, Social medias, etc.
Google Analytics, Google Search Console.
Code Snippets
Basic Meta tags
<meta charset="utf-8">
<title>Your Page Title</title>
<link rel="canonical" href="https://www.#yoursite#.com/" />
<meta name="description" content="Your description">
<meta name="viewport" content="width=device-width, initial-scale=1">OG meta tags
<meta property=”og:type” content=”article” />
<meta property=”og:title” content=”title of the page” />
<meta property=”og:description” content=”description of the page” />
<meta property=”og:image” content=”image thmbnail” />
<meta property=”og:url” content=”your url” />
<meta property=”og:site_name” content=”site name” />
Twitter card meta tags
<meta name=”twitter:title” content=”title of the page”>
<meta name=”twitter:description” content=”description of the page”>
<meta name=”twitter:image” content=”image thumbnail”>
<meta name=”twitter:site” content=”@username”>
<meta name=”twitter:creator” content=”@username”>
SDM...Structured Data Markup
Microdata...https://en.wikipedia.org/wiki/Microdata_(HTML)
Google's Rich Snippet Testing Tool
JSON-LD...https://en.wikipedia.org/wiki/JSON-LD
JSON-LD
<script type="application/ld+json">
{
"@context": {
"name": "http://xmlns.com/foaf/0.1/name",
"homepage": {
"@id": "http://xmlns.com/foaf/0.1/workplaceHomepage",
"@type": "@id"
},
"Person": "http://xmlns.com/foaf/0.1/Person"
},
"@id": "https://me.example.com",
"@type": "Person",
"name": "John Smith",
"homepage": "https://www.example.com/"
}
</script>