SlideShare a Scribd company logo
1 of 4
Download to read offline
The Web Developer’s
SEO Cheat Sheet
Important HTML Elements
Title tag
Meta Description Tag
Image
Best Practices
HTTP Status Codes
Canonicalization
200	 OK/Success
301	 Permanent Redirect
302	 Temporary Redirect
404	 Not Found
410	 Gone (permanently removed)
500	 Server Error
503	 Unavailable (retry later)
Webmaster Tools
<head>
<title>Page Title</title>
</head>
<head>
<meta name="description"
content="This is an example.">
</head>
No longer than 60-80 characters
Important keywords near the beginning
Each title should be unique
No longer than 155 characters
Each description should be unique
Well written descriptions influence
click-through rate
Hyperlinks
Text Link
SEO Tips for URLs
Common Duplicate Homepage URLs
NoFollowed Link
Image Link
Hyperlinking Best Practices
Google Webmaster Tools
Bing Webmaster Tools
Yandex Webmaster Tools
Canonicalized URL Best Practices
<a href="http://www.example.com/
webpage.html">Keyword in Anchor
Text</a>
<a href="http://www.example.com/webpage.html"><img src="img/
keyword.jpg" alt="keyword" width="100" height="100"></a>
<a href="http://www.example.com/
webpage.html" rel="nofollow">
Keyword in Anchor Text</a>
Limit links per page to roughly 150
Use "nofollow" for paid links and
untrusted content
For image links, the alt tags serves
as anchor text
http://www.example.com/
rel="canonical"
<link href="http://www.example.com/"
rel="canonical" />
<img src="img/keyword.jpg" alt="keyword" width="100" height="100">
http://www.example.com
http://example.com
http://www.example.com/index.html
http://example.com/index.html
http://example.com/index.html&sessid=123
1. Protocol
2. Subdomain
3. Root Domain
4. Top-Level Domain
5. Subfolder/Path
6. Page
7. Parameter
8. Named Anchor
•	 Use descriptive keywords in URLs
•	 Watch for duplicate content when using multiple parameters
•	 When possible, place content on the same subdomain to preserve domain authority
	 Recommended: http://example.com/blog
	 Less Ideal: http://blog.example.com
https://www.google.com/webmasters/tools/home
http://www.bing.com/toolbox/webmaster/
http://webmaster.yandex.com/
URL Best Practices
Common URL Elements
http://store.example.com/category/keyword?id=123#top
1 2 3 4 5 6 7 8
V2.0 | moz.com | © 2013 SEOmoz
More information at
http://mz.cm/HTTP-codes
More information at http://mz.cm/canonical
V2.0 | moz.com | © 2013 SEOmoz 2The Web Developer’s SEO Cheat Sheet
Important User-agentsRobot Control Syntax
Sitemap Syntax
For robots.txt, robots
meta tags
& X-Robots-Tag
Googlebot (can be
used as default for most
Google crawlers)
Googlebot-News
Googlebot-Image
Mediapartners (Adsense)
Bingbot
Yandexbot
Rogerbot
Baiduspider
FacebookExternalHit
Googlebot-Mobile
(Mobile Smartphones)
Googlebot-Mobile
Mediapartners-Google
(Mobile Adsense) or
Mediapartners
User-agent in HTTP(S) requests
Mozilla/5.0 (compatible; Googlebot/2.1;
+http://www.google.com/bot.html)
While robots.txt may restrict
crawling, only Meta Robots and
X-Robots will remove URLs from
search results.
Nofollow (do not follow links)
Noindex (do not index)
Noarchive (do not archive)
NoODP (Do not show Open Directory
Project description)
...Or combined (noindex, nofollow)
If the robots <META> tag is not defined,
the default is "INDEX,FOLLOW"
Googlebot-News
Googlebot-Image/1.0
Mediapartners-Google
Mozilla/5.0 (compatible; bingbot/2.0;
+http://www.bing.com/bingbot.htm)
Mozilla/5.0 (compatible; YandexBot/3.0;
+http://yandex.com/bots)
Mozilla/5.0 (compatible; rogerBot/1.0;
UrlCrawler; http://moz.com/help/pro/
rogerbot-crawler)
Mozilla/5.0 (compatible; Baiduspider/2.0;
+/web/20130307230956/http://www.
baidu.com/search/spider.html)
facebookexternalhit/1.1 (+http://www.
facebook.com/externalhit_uatext.php)
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1
like Mac OS X; en-us) AppleWebKit/532.9
(KHTML, like Gecko) Version/4.0.5
Mobile/8B117 Safari/6531.22.7 (compatible;
Googlebot-Mobile/2.1; +http://www.google.
com/bot.html)
[various mobile device types] (compatible;
Googlebot-Mobile/2.1; +http://www.
google.com/bot.html)
[various mobile device types] (compatible;
Mediapartners-Google/2.1; +http://www.
google.com/bot.html)
Robots.txt
Robots Best Practices
Arguments can be:X-Robots
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<url>
		<loc>http://www.example.com/</loc>
		<lastmod>1970-01-01</lastmod>
		<changefreq>monthly</changefreq>
		<priority>0.8</priority>
	</url>
</urlset>
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		 <loc>http://www.example.com/sitemap1.xml.gz</loc>
		 <lastmod>2004-10-01T18:23:17+00:00</lastmod>
	 </sitemap>
	 <sitemap>
		 <loc>http://www.example.com/sitemap2.xml.gz</loc>
		 <lastmod>2005-01-01</lastmod>
	 </sitemap>
</sitemapindex>
XML Sitemaps
Sitemap Index File
Meta Robots
Location: http://example.com/robots.txt
Location: Sent in the HTTP headers
Location: In the html <head>
More information at http://www.robotstxt.org/robotstxt.html
More information at http://noarchive.net/xrobots/
More information at http://www.robotstxt.org/meta.html
User-agent: googlebot
Disallow: /no-google.html
Sitemap: http://example.com/sitemap.xml
X-Robots-Tag: noindex
<meta name="ROBOT NAME" content="ARGUMENTS" />
http://www.example.com/sitemap.xml
http://www.example.com/sitemap.xml.gz
http://www.example.com/sitemap.gz
Default Locations
Mobile
News
Image
Video
Other Common Sitemap Types:
V2.0 | moz.com | © 2013 SEOmoz 3The Web Developer’s SEO Cheat Sheet
Important Metadata
<head>
<meta property="og:title" content="Title Goes Here">
<meta property="og:description" content="description-goes-here">
<meta property="og:type" content="your-content-type-goes-here"> (e.g., "article")
<meta property="og:url" content="http://www.your-site.com/">
<meta property="og:image" content="http://www.your-site.com/image.jpg">
<meta property="og:site_name" content="your-site-name">
<meta property="fb:admins" content="your-Facebook-page-user-ID">
</head>
<a href="[profile_url]?rel=author">Google</a>
<a href="[profile_url]?rel=publisher">Google</a>
<head>
<meta name="twitter:card" content="summary">
<meta name="twitter:url" content="http://www.example.com/your-url-goes-here/">
<meta name="twitter:title" content="Title Goes Here">
<meta name="twitter:description" content="Your description goes here.">
<meta name="twitter:image" content="http://example.com/image.jpg">
</head>
<html itemscope itemtype="http://schema.org/Article">
<head>
<meta itemprop="name" content="Title Goes Here">
<meta itemprop="description" content="Description Goes Here">
<meta itemprop="image" content="http://example.com/image.jpg">
</head>
Facebook Open Graph
Twitter Cards
Google+
Google+ Authorship
Google+ Publisher
More information at https://dev.twitter.com/docs/cards
More information at https://developers.google.com/+/web/snippet/
More information at https://developers.facebook.com/docs/opengraph/
More information at
https://support.google.com/webmasters/answer/2539557
More information at
https://support.google.com/webmasters/answer/1708844
Google+ will extract information from Open Graph properties, title
and meta description tags, or Schema.org microdata (recommended).
For author information in Google search results:
For businesses, brands, products and organizations:
Link your content to your Google+ profile
Link your homepage to your Google+ profile
Link to your website from your Google+ page's profile
Link back to your site from the ‘Contributor’
section of your Google+ profile
1
1
2
2
V2.0 | moz.com | © 2013 SEOmoz 4The Web Developer’s SEO Cheat Sheet
Targeting Multiple Languages Mobile Web Development
Declare language attribute in the HTML element Responsive Design
Separate URLs
HTML version in <head>
Sitemap version
Annotate alternate language & country versions of content
1
3
ccTLDs (Country Level Only)
Subdirectories with gTLDS
Subdomains with gTLDS
example.de
example.com/de/
de.example.com/
URL Structures for Country & Language Targeting
rel="alternate" hreflang="x"
<html lang="fr">
<link rel="alternate" hreflang="x-default" href="http://www.example.com/" /> (Specifies Default)
<link rel="alternate" hreflang="de" href="http://example.com/de/" /> (Specifies Language)
<link rel="alternate" hreflang="de-ES" href="http://example.com/de-es/" /> (Specifies Language + Region)
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://example.com/english</loc>
<xhtml:link rel="alternate" hreflang="de" href="http://example.com/deutsch/" />
<xhtml:link rel="alternate" hreflang="en" href="http://example.com/english/" />
</url>
<url>
<loc>http://example.com/deutsch/</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://example.com/english/" />
<xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/" />
</url>
</urlset>
Uses CSS to alter the rendering of the page on the
device using media queries
/* Phones */
@media (max-width: 767px) { ... }
/* Tablets to Desktops */
@media (min-width: 768px) and (max-width:
992px) { ... }
/* Large devices */
@media (min-width: 1200px) { ... }
Identify mobile and desktop versions using rel="alternate"
and rel="canonical"
Example:
Desktop page: http://example.com/
	 <link rel="alternate" media="only screen and (max-
	 width: 640px)"
	href="http://m.example.com/"/>
Mobile page: http://m.example.com/
	 <link rel="canonical" href="http://example.com/"/>
Popular Languages Popular Regions
ch	 Chinese
es	 Spanish
en	 English
ar	 Arabic
hi	 Hindi
CN 	 China
US	 United States
IN	 India
JP	 Japan
BR	 Brazil
More language codes can be found at
http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
More region codes can be found at
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
Dynamic Serving via Vary HTTP Header2
Serves different HTML and CSS on the same URL, varied by user agent
(...rest of HTTP response headers...)
HTTP/1.1 200 OK
Content-Type: text/html
Vary: User-Agent
Content-Length: 5710

More Related Content

What's hot

Findability Bliss Through Web Standards
Findability Bliss Through Web StandardsFindability Bliss Through Web Standards
Findability Bliss Through Web StandardsAarron Walter
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Wahyu Putra
 
Html&Browser
Html&BrowserHtml&Browser
Html&BrowserAlipay
 
3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...
3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...
3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...Wahyu Putra
 
Creating HTML Pages
Creating HTML PagesCreating HTML Pages
Creating HTML PagesMike Crabb
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web designStephen Pollard
 

What's hot (6)

Findability Bliss Through Web Standards
Findability Bliss Through Web StandardsFindability Bliss Through Web Standards
Findability Bliss Through Web Standards
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
 
Html&Browser
Html&BrowserHtml&Browser
Html&Browser
 
3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...
3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...
3 Langkah Mudah Membuat Website Dakwah (User Friendly - SEO Friendly - Mobile...
 
Creating HTML Pages
Creating HTML PagesCreating HTML Pages
Creating HTML Pages
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 

Viewers also liked

Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...
Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...
Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...Foteini Vavitsa
 
Presentasi mp dbs full versi p margono
Presentasi mp dbs full versi p margonoPresentasi mp dbs full versi p margono
Presentasi mp dbs full versi p margonojhotyvie
 
俺のZabbixがこんなに可愛いわけがない~北海道巡業編~
俺のZabbixがこんなに可愛いわけがない~北海道巡業編~俺のZabbixがこんなに可愛いわけがない~北海道巡業編~
俺のZabbixがこんなに可愛いわけがない~北海道巡業編~Seiichiro Ishida
 
4.com convèncer l'oponent
4.com convèncer l'oponent4.com convèncer l'oponent
4.com convèncer l'oponentMateuRamonell
 
Note difference between sysstat on cent os 5 & 6
Note  difference between sysstat on cent os 5 & 6Note  difference between sysstat on cent os 5 & 6
Note difference between sysstat on cent os 5 & 6Seiichiro Ishida
 
2.quèéseldebat. diferents tipus de debats
2.quèéseldebat. diferents tipus de debats2.quèéseldebat. diferents tipus de debats
2.quèéseldebat. diferents tipus de debatsMateuRamonell
 

Viewers also liked (7)

Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...
Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...
Internet Marketing: Η κοινωνικἠ διάσταση της διαχείρισης των προσωπικών δεδομ...
 
Presentasi mp dbs full versi p margono
Presentasi mp dbs full versi p margonoPresentasi mp dbs full versi p margono
Presentasi mp dbs full versi p margono
 
1.debatpresentació
1.debatpresentació1.debatpresentació
1.debatpresentació
 
俺のZabbixがこんなに可愛いわけがない~北海道巡業編~
俺のZabbixがこんなに可愛いわけがない~北海道巡業編~俺のZabbixがこんなに可愛いわけがない~北海道巡業編~
俺のZabbixがこんなに可愛いわけがない~北海道巡業編~
 
4.com convèncer l'oponent
4.com convèncer l'oponent4.com convèncer l'oponent
4.com convèncer l'oponent
 
Note difference between sysstat on cent os 5 & 6
Note  difference between sysstat on cent os 5 & 6Note  difference between sysstat on cent os 5 & 6
Note difference between sysstat on cent os 5 & 6
 
2.quèéseldebat. diferents tipus de debats
2.quèéseldebat. diferents tipus de debats2.quèéseldebat. diferents tipus de debats
2.quèéseldebat. diferents tipus de debats
 

Similar to The Web Developer's SEO Cheat Sheet 2.0 from the Moz Blog

SEO cheat 2013 by Moz
SEO cheat 2013 by MozSEO cheat 2013 by Moz
SEO cheat 2013 by MozThái Mèo
 
Seo cheat sheet 2 [2013] For General Information
Seo cheat sheet 2 [2013] For General InformationSeo cheat sheet 2 [2013] For General Information
Seo cheat sheet 2 [2013] For General InformationNirav Patel
 
Seo cheat sheet_2-2013
Seo cheat sheet_2-2013Seo cheat sheet_2-2013
Seo cheat sheet_2-2013E-event
 
Seo cheat sheet_2-2013
Seo cheat sheet_2-2013Seo cheat sheet_2-2013
Seo cheat sheet_2-2013vijay patil
 
Moz SEO Web cheat sheet 2016
Moz SEO Web cheat sheet 2016Moz SEO Web cheat sheet 2016
Moz SEO Web cheat sheet 2016Nirav Patel
 
The Web Developer's SEO Cheat Sheet
The Web Developer's SEO Cheat Sheet The Web Developer's SEO Cheat Sheet
The Web Developer's SEO Cheat Sheet Shubham Kumar Singh
 
Seo cheat sheet
Seo cheat sheetSeo cheat sheet
Seo cheat sheetRohan Jha
 
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019patrickstox
 
Great+Seo+Cheatsheet
Great+Seo+CheatsheetGreat+Seo+Cheatsheet
Great+Seo+Cheatsheetjeetututeja
 
Guía SEO 2020: Trucos y recomendaciones para desarrolladores y webmasters
Guía SEO 2020: Trucos y recomendaciones para desarrolladores y webmastersGuía SEO 2020: Trucos y recomendaciones para desarrolladores y webmasters
Guía SEO 2020: Trucos y recomendaciones para desarrolladores y webmastersMiguel López Zuleta
 
Web design and Development
Web design and DevelopmentWeb design and Development
Web design and DevelopmentShagor Ahmed
 
WordCamp Atlanta 2010 Advanced SEo for Wordpress
WordCamp Atlanta 2010 Advanced SEo for WordpressWordCamp Atlanta 2010 Advanced SEo for Wordpress
WordCamp Atlanta 2010 Advanced SEo for WordpressTopher Kohan
 
Choose Your Own Adventure: SEO For Web Developers | Unified Diff
Choose Your Own Adventure: SEO For Web Developers | Unified DiffChoose Your Own Adventure: SEO For Web Developers | Unified Diff
Choose Your Own Adventure: SEO For Web Developers | Unified DiffSteve Morgan
 
HTML by Telerik Akademy
HTML by Telerik AkademyHTML by Telerik Akademy
HTML by Telerik AkademyOgnyan Penkov
 

Similar to The Web Developer's SEO Cheat Sheet 2.0 from the Moz Blog (20)

SEO cheat 2013 by Moz
SEO cheat 2013 by MozSEO cheat 2013 by Moz
SEO cheat 2013 by Moz
 
Seo cheat sheet 2 [2013] For General Information
Seo cheat sheet 2 [2013] For General InformationSeo cheat sheet 2 [2013] For General Information
Seo cheat sheet 2 [2013] For General Information
 
Seo cheat sheet_2-2013
Seo cheat sheet_2-2013Seo cheat sheet_2-2013
Seo cheat sheet_2-2013
 
Seo cheat sheet_2-2013
Seo cheat sheet_2-2013Seo cheat sheet_2-2013
Seo cheat sheet_2-2013
 
Seo cheat-sheet
Seo cheat-sheetSeo cheat-sheet
Seo cheat-sheet
 
Moz SEO Web cheat sheet 2016
Moz SEO Web cheat sheet 2016Moz SEO Web cheat sheet 2016
Moz SEO Web cheat sheet 2016
 
Seo cheat-sheet
Seo cheat-sheetSeo cheat-sheet
Seo cheat-sheet
 
The Web Developer's SEO Cheat Sheet
The Web Developer's SEO Cheat Sheet The Web Developer's SEO Cheat Sheet
The Web Developer's SEO Cheat Sheet
 
Seo cheat sheet
Seo cheat sheetSeo cheat sheet
Seo cheat sheet
 
Seo cheat-sheet
Seo cheat-sheetSeo cheat-sheet
Seo cheat-sheet
 
Seo onpage for Developer
Seo onpage for DeveloperSeo onpage for Developer
Seo onpage for Developer
 
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
 
Great+Seo+Cheatsheet
Great+Seo+CheatsheetGreat+Seo+Cheatsheet
Great+Seo+Cheatsheet
 
Guía SEO 2020: Trucos y recomendaciones para desarrolladores y webmasters
Guía SEO 2020: Trucos y recomendaciones para desarrolladores y webmastersGuía SEO 2020: Trucos y recomendaciones para desarrolladores y webmasters
Guía SEO 2020: Trucos y recomendaciones para desarrolladores y webmasters
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
Web design and Development
Web design and DevelopmentWeb design and Development
Web design and Development
 
WordCamp Atlanta 2010 Advanced SEo for Wordpress
WordCamp Atlanta 2010 Advanced SEo for WordpressWordCamp Atlanta 2010 Advanced SEo for Wordpress
WordCamp Atlanta 2010 Advanced SEo for Wordpress
 
Choose Your Own Adventure: SEO For Web Developers | Unified Diff
Choose Your Own Adventure: SEO For Web Developers | Unified DiffChoose Your Own Adventure: SEO For Web Developers | Unified Diff
Choose Your Own Adventure: SEO For Web Developers | Unified Diff
 
HTML by Telerik Akademy
HTML by Telerik AkademyHTML by Telerik Akademy
HTML by Telerik Akademy
 
SEO Audit TNT Express
SEO Audit TNT ExpressSEO Audit TNT Express
SEO Audit TNT Express
 

The Web Developer's SEO Cheat Sheet 2.0 from the Moz Blog

  • 1. The Web Developer’s SEO Cheat Sheet Important HTML Elements Title tag Meta Description Tag Image Best Practices HTTP Status Codes Canonicalization 200 OK/Success 301 Permanent Redirect 302 Temporary Redirect 404 Not Found 410 Gone (permanently removed) 500 Server Error 503 Unavailable (retry later) Webmaster Tools <head> <title>Page Title</title> </head> <head> <meta name="description" content="This is an example."> </head> No longer than 60-80 characters Important keywords near the beginning Each title should be unique No longer than 155 characters Each description should be unique Well written descriptions influence click-through rate Hyperlinks Text Link SEO Tips for URLs Common Duplicate Homepage URLs NoFollowed Link Image Link Hyperlinking Best Practices Google Webmaster Tools Bing Webmaster Tools Yandex Webmaster Tools Canonicalized URL Best Practices <a href="http://www.example.com/ webpage.html">Keyword in Anchor Text</a> <a href="http://www.example.com/webpage.html"><img src="img/ keyword.jpg" alt="keyword" width="100" height="100"></a> <a href="http://www.example.com/ webpage.html" rel="nofollow"> Keyword in Anchor Text</a> Limit links per page to roughly 150 Use "nofollow" for paid links and untrusted content For image links, the alt tags serves as anchor text http://www.example.com/ rel="canonical" <link href="http://www.example.com/" rel="canonical" /> <img src="img/keyword.jpg" alt="keyword" width="100" height="100"> http://www.example.com http://example.com http://www.example.com/index.html http://example.com/index.html http://example.com/index.html&sessid=123 1. Protocol 2. Subdomain 3. Root Domain 4. Top-Level Domain 5. Subfolder/Path 6. Page 7. Parameter 8. Named Anchor • Use descriptive keywords in URLs • Watch for duplicate content when using multiple parameters • When possible, place content on the same subdomain to preserve domain authority Recommended: http://example.com/blog Less Ideal: http://blog.example.com https://www.google.com/webmasters/tools/home http://www.bing.com/toolbox/webmaster/ http://webmaster.yandex.com/ URL Best Practices Common URL Elements http://store.example.com/category/keyword?id=123#top 1 2 3 4 5 6 7 8 V2.0 | moz.com | © 2013 SEOmoz More information at http://mz.cm/HTTP-codes More information at http://mz.cm/canonical
  • 2. V2.0 | moz.com | © 2013 SEOmoz 2The Web Developer’s SEO Cheat Sheet Important User-agentsRobot Control Syntax Sitemap Syntax For robots.txt, robots meta tags & X-Robots-Tag Googlebot (can be used as default for most Google crawlers) Googlebot-News Googlebot-Image Mediapartners (Adsense) Bingbot Yandexbot Rogerbot Baiduspider FacebookExternalHit Googlebot-Mobile (Mobile Smartphones) Googlebot-Mobile Mediapartners-Google (Mobile Adsense) or Mediapartners User-agent in HTTP(S) requests Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) While robots.txt may restrict crawling, only Meta Robots and X-Robots will remove URLs from search results. Nofollow (do not follow links) Noindex (do not index) Noarchive (do not archive) NoODP (Do not show Open Directory Project description) ...Or combined (noindex, nofollow) If the robots <META> tag is not defined, the default is "INDEX,FOLLOW" Googlebot-News Googlebot-Image/1.0 Mediapartners-Google Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots) Mozilla/5.0 (compatible; rogerBot/1.0; UrlCrawler; http://moz.com/help/pro/ rogerbot-crawler) Mozilla/5.0 (compatible; Baiduspider/2.0; +/web/20130307230956/http://www. baidu.com/search/spider.html) facebookexternalhit/1.1 (+http://www. facebook.com/externalhit_uatext.php) Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7 (compatible; Googlebot-Mobile/2.1; +http://www.google. com/bot.html) [various mobile device types] (compatible; Googlebot-Mobile/2.1; +http://www. google.com/bot.html) [various mobile device types] (compatible; Mediapartners-Google/2.1; +http://www. google.com/bot.html) Robots.txt Robots Best Practices Arguments can be:X-Robots <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.example.com/</loc> <lastmod>1970-01-01</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> </urlset> <?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.example.com/sitemap1.xml.gz</loc> <lastmod>2004-10-01T18:23:17+00:00</lastmod> </sitemap> <sitemap> <loc>http://www.example.com/sitemap2.xml.gz</loc> <lastmod>2005-01-01</lastmod> </sitemap> </sitemapindex> XML Sitemaps Sitemap Index File Meta Robots Location: http://example.com/robots.txt Location: Sent in the HTTP headers Location: In the html <head> More information at http://www.robotstxt.org/robotstxt.html More information at http://noarchive.net/xrobots/ More information at http://www.robotstxt.org/meta.html User-agent: googlebot Disallow: /no-google.html Sitemap: http://example.com/sitemap.xml X-Robots-Tag: noindex <meta name="ROBOT NAME" content="ARGUMENTS" /> http://www.example.com/sitemap.xml http://www.example.com/sitemap.xml.gz http://www.example.com/sitemap.gz Default Locations Mobile News Image Video Other Common Sitemap Types:
  • 3. V2.0 | moz.com | © 2013 SEOmoz 3The Web Developer’s SEO Cheat Sheet Important Metadata <head> <meta property="og:title" content="Title Goes Here"> <meta property="og:description" content="description-goes-here"> <meta property="og:type" content="your-content-type-goes-here"> (e.g., "article") <meta property="og:url" content="http://www.your-site.com/"> <meta property="og:image" content="http://www.your-site.com/image.jpg"> <meta property="og:site_name" content="your-site-name"> <meta property="fb:admins" content="your-Facebook-page-user-ID"> </head> <a href="[profile_url]?rel=author">Google</a> <a href="[profile_url]?rel=publisher">Google</a> <head> <meta name="twitter:card" content="summary"> <meta name="twitter:url" content="http://www.example.com/your-url-goes-here/"> <meta name="twitter:title" content="Title Goes Here"> <meta name="twitter:description" content="Your description goes here."> <meta name="twitter:image" content="http://example.com/image.jpg"> </head> <html itemscope itemtype="http://schema.org/Article"> <head> <meta itemprop="name" content="Title Goes Here"> <meta itemprop="description" content="Description Goes Here"> <meta itemprop="image" content="http://example.com/image.jpg"> </head> Facebook Open Graph Twitter Cards Google+ Google+ Authorship Google+ Publisher More information at https://dev.twitter.com/docs/cards More information at https://developers.google.com/+/web/snippet/ More information at https://developers.facebook.com/docs/opengraph/ More information at https://support.google.com/webmasters/answer/2539557 More information at https://support.google.com/webmasters/answer/1708844 Google+ will extract information from Open Graph properties, title and meta description tags, or Schema.org microdata (recommended). For author information in Google search results: For businesses, brands, products and organizations: Link your content to your Google+ profile Link your homepage to your Google+ profile Link to your website from your Google+ page's profile Link back to your site from the ‘Contributor’ section of your Google+ profile 1 1 2 2
  • 4. V2.0 | moz.com | © 2013 SEOmoz 4The Web Developer’s SEO Cheat Sheet Targeting Multiple Languages Mobile Web Development Declare language attribute in the HTML element Responsive Design Separate URLs HTML version in <head> Sitemap version Annotate alternate language & country versions of content 1 3 ccTLDs (Country Level Only) Subdirectories with gTLDS Subdomains with gTLDS example.de example.com/de/ de.example.com/ URL Structures for Country & Language Targeting rel="alternate" hreflang="x" <html lang="fr"> <link rel="alternate" hreflang="x-default" href="http://www.example.com/" /> (Specifies Default) <link rel="alternate" hreflang="de" href="http://example.com/de/" /> (Specifies Language) <link rel="alternate" hreflang="de-ES" href="http://example.com/de-es/" /> (Specifies Language + Region) <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <url> <loc>http://example.com/english</loc> <xhtml:link rel="alternate" hreflang="de" href="http://example.com/deutsch/" /> <xhtml:link rel="alternate" hreflang="en" href="http://example.com/english/" /> </url> <url> <loc>http://example.com/deutsch/</loc> <xhtml:link rel="alternate" hreflang="en" href="http://example.com/english/" /> <xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/deutsch/" /> </url> </urlset> Uses CSS to alter the rendering of the page on the device using media queries /* Phones */ @media (max-width: 767px) { ... } /* Tablets to Desktops */ @media (min-width: 768px) and (max-width: 992px) { ... } /* Large devices */ @media (min-width: 1200px) { ... } Identify mobile and desktop versions using rel="alternate" and rel="canonical" Example: Desktop page: http://example.com/ <link rel="alternate" media="only screen and (max- width: 640px)" href="http://m.example.com/"/> Mobile page: http://m.example.com/ <link rel="canonical" href="http://example.com/"/> Popular Languages Popular Regions ch Chinese es Spanish en English ar Arabic hi Hindi CN China US United States IN India JP Japan BR Brazil More language codes can be found at http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes More region codes can be found at http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Dynamic Serving via Vary HTTP Header2 Serves different HTML and CSS on the same URL, varied by user agent (...rest of HTTP response headers...) HTTP/1.1 200 OK Content-Type: text/html Vary: User-Agent Content-Length: 5710