Best SEO cheat sheet that includes important elements needed to implement best practices for SEO - HTML, Hyperlinks, Webmaster tools, parameters, sitemaps, syntax and more
These affect how you show up in search results
<head>
<title>Page Title</title>
</head>
<head>
<meta name="description" content="This is an example.">
</head>
Text Link:
<a href="https://www.example.com/webpage.html">Anchor Text</a>
NoFollowed Link:
<a href="https://www.example.com/webpage.html" rel="nofollow">Anchor Text</a>
Image Link:
<a href="https://www.example.com/webpage.html"><img src="/img/keyword.jpg" alt="description of image" height="50" width="100"></a>
Code | Meaning |
---|---|
200 |
OK/Success |
301 |
Permanent redirect |
302 |
Temporary redirect |
404 |
Not found |
410 |
Gone (permanently removed) |
500 |
Server error |
503 |
Unavailable (retry later |
https://store.example.com/category/keyword?id=123#top
1 2 3 4 5 6 7 8
1 |
Protocol |
5 |
Subfolder/path |
2 |
Subdomain |
6 |
Page |
3 |
Root domain |
7 |
Parameter |
4 |
Top-level domain |
8 |
Named anchor |
https://example.com
<head>
section to indicate preferred URL:
## Robots Control Syntax
### `Robots.txt`
Location: `https://example.com/robots.txt`
```text
User-agent: googlebot
Disallow: /example.html
Sitemap: https://example.com/sitemap.xml
Noindex |
do not index |
Nofollow |
do not follow links |
Noarchive |
do not show cache |
Note that you can combine them (noindex
, nofollow
)
<META>
tag is not defined, the default is INDEX, FOLLOW
robots.txt
: they need to be crawled to be respected.For Robots.txt
, Robots Meta Tags
, and X-Robots-Tag
.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/foo.html</loc>
<lastmod>2019-06-04</lastmod>
</url>
</urlset>
RSS and text sitemaps are also options.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap1.xml.gz</loc>
<lastmod>2019-01-01T18:23:17+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap2.xml.gz</loc>
<lastmod>2019-01-01</lastmod>
</sitemap>
</sitemapindex>
Article
Article
Place this data between the <head> tags of your website.
<!-- Required Open Graph data -->
<meta property="og:title" content="Developer's Cheat
Sheet to SEO" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://example.
com/image.jpg" />
<meta property="og:url" content="https://example.
com" />
<!-- Optional Open Graph data -->
<meta property="og:audio" content="https://example.
com/guide.mp3." />
<meta property="og:description" content="Description
here." />
<meta property="og:site_name" content="Your Site
Name, i.e. Moz" />
<meta property="og:locale" content="en_us" />
<meta property="og:video" content="https://example.
com/guide.mp4" />
<meta property="fb:app_id" content="Your FB_APP_ID" />
<!-- Find additional markup on https://ogp.me -->
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Moz">
<meta name="twitter:title" content="Title of content
(max 70 characters)">
<meta name="twitter:description" content="Description of content">
<meta name="twitter:image" content="https://example.
com/unique-image.jpg">
Default to Open Graph
Platforms that support Open Graph protocol include Facebook,
Twitter, LinkedIn, and Pinterest.
Optimal Image Sizing
Enhance search results and help search engines understand your content
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
<---Repeat markup for additional list items--->
"@type": "ListItem",
"position": 1,
"item": {
"@id": "http://example.com/dinner",
"name": "Dinner" }
},
<---Additional list items here--->
}]
}</script>
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Review",
"reviewBody": "The restaurant has great ambiance.",
"itemReviewed": {
"@type": "Restaurant",
"name": "Fine Dining Establishment"
},
"reviewRating": {
"@type": "Rating",
"ratingValue": 5,
"worstRating": 1,
"bestRating": 5,
"reviewAspect": "Ambiance"
}
}
</script>
Review stars won’t show up in search results.
The most common culprit of poor page speed is images!
Performance
tab to test your runtime performance and network “throttling” to simulate different device capabilities.