SlideShare a Scribd company logo
1 of 4
Download to read offline
The Web Developer’s

SEO Cheat Sheet
Important HTML Elements

HTTP Status Codes

Title tag

Best Practices

200	 OK/Success

<head>
<title>Page Title</title>
</head>

No longer than 60-80 characters
Important keywords near the beginning
Each title should be unique

302	 Temporary Redirect

Meta Description Tag

301	 Permanent Redirect
404	 Not Found
410	 Gone (permanently removed)

<head>
<meta name="description"
content="This is an example.">
</head>

No longer than 155 characters
Each description should be unique
Well written descriptions influence
click-through rate

Image

500	 Server Error

Webmaster Tools
Google Webmaster Tools
https://www.google.com/webmasters/tools/home

Bing Webmaster Tools
http://www.bing.com/toolbox/webmaster/

503	 Unavailable (retry later)

Yandex Webmaster Tools

More information at
http://mz.cm/HTTP-codes

http://webmaster.yandex.com/

<img src="img/keyword.jpg" alt="keyword" width="100" height="100">

Canonicalization

Hyperlinks
Text Link

Hyperlinking Best Practices

Common Duplicate Homepage URLs

Canonicalized URL Best Practices

<a href="http://www.example.com/
webpage.html">Keyword in Anchor
Text</a>

Limit links per page to roughly 150

http://www.example.com

http://www.example.com/

Use "nofollow" for paid links and
untrusted content

http://example.com

rel="canonical"

For image links, the alt attribute
serves as anchor text

http://www.example.com/index.html

<link href="http://www.example.com/"
rel="canonical" />

NoFollowed Link
<a href="http://www.example.com/
webpage.html" rel="nofollow">
Keyword in Anchor Text</a>

http://example.com/index.html

Image Link
<a href="http://www.example.com/webpage.html"><img src="img/
keyword.jpg" alt="keyword" width="100" height="100"></a>

URL Best Practices
Common URL Elements
http://store.example.com/category/keyword?id=123#top

1 2 3 4 5

6

7 8

1. Protocol
2. Subdomain
3. Root Domain
4. Top-Level Domain
5. Subfolder/Path
6. Page
7. Parameter
8. Named Anchor

http://example.com/index.html&sessid=123

More information at http://mz.cm/canonical

SEO Tips for URLs
•	 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
V2.1

|

moz.com

|

© 2013 SEOmoz
Robot Control Syntax
Robots.txt
Location: http://example.com/robots.txt
User-agent: googlebot
Disallow: /no-google.html
Sitemap: http://example.com/sitemap.xml
More information at http://www.robotstxt.org/robotstxt.html

X-Robots
Location: Sent in the HTTP headers
X-Robots-Tag: noindex
More information at http://noarchive.net/xrobots/

Meta Robots
Location: In the html <head>
<meta name="ROBOT NAME" content="ARGUMENTS" />
More information at http://www.robotstxt.org/meta.html

Important User-agents
Robots Best Practices
While robots.txt may restrict
crawling, only Meta Robots and
X-Robots will remove URLs from
search results.
Arguments can be:
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)

For robots.txt, robots
meta tags
& X-Robots-Tag

User-agent in HTTP(S) requests

Googlebot (can be
used as default for most
Google crawlers)

Mozilla/5.0 (compatible; Googlebot/2.1;
+http://www.google.com/bot.html)

Googlebot-News

Googlebot-News

Googlebot-Image

Googlebot-Image/1.0

Googlebot-Mobile

[various mobile device types] (compatible;
Googlebot-Mobile/2.1; +http://www.
google.com/bot.html)

Googlebot-Mobile
(Mobile Smartphones)

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)

Mediapartners-Google
(Mobile Adsense) or
Mediapartners

[various mobile device types] (compatible;
Mediapartners-Google/2.1; +http://www.
google.com/bot.html)

If the robots <META> tag is not defined,
the default is "INDEX,FOLLOW"

Sitemap Syntax
XML Sitemaps

Default Locations

<?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>

http://www.example.com/sitemap.xml

Mediapartners (Adsense)

Mediapartners-Google

http://www.example.com/sitemap.xml.gz

Bingbot

Mozilla/5.0 (compatible; bingbot/2.0;
+http://www.bing.com/bingbot.htm)

Baiduspider

Mozilla/5.0 (compatible; Baiduspider/2.0;
+/web/20130307230956/http://www.
baidu.com/search/spider.html)

Yandexbot

Mozilla/5.0 (compatible; YandexBot/3.0;
+http://yandex.com/bots)

FacebookExternalHit

facebookexternalhit/1.1 (+http://www.
facebook.com/externalhit_uatext.php)

Rogerbot

Mozilla/5.0 (compatible; rogerBot/1.0;
UrlCrawler; http://moz.com/help/pro/
rogerbot-crawler)

Sitemap Index File
<?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>

The Web Developer’s SEO Cheat Sheet

http://www.example.com/sitemap.gz

Other Common Sitemap Types:
Mobile
News
Image
Video

V2.1

|

moz.com

|

© 2013 SEOmoz

2
Important Metadata

Google Authorship & Publisher

Facebook Open Graph

Google+ Authorship

<head>

For

<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="fb:admins" content="your-Facebook-page-user-ID">
</head>

More information at https://developers.facebook.com/docs/opengraph/

Twitter Cards

2

businesses, brands, products and
organizations:

Link your content to your
Google+ profile

Link your homepage to your
Google+ profile
<a href="[profile_
url]?rel=publisher">Google</a>

Link back to your site from the
‘Contributor’ section of your
Google+ profile

Link to your website from your
Google+ page's profile

More information at
http://mz.cm/google-author

<meta property="og:image" content="http://www.your-site.com/image.jpg">

author information in Google
search results:

<a href="[profile_
url]?rel=author">Google</a>

1

<meta property="og:url" content="http://www.your-site.com/">
<meta property="og:site_name" content="your-site-name">

Google+ Publisher

More information at
http://mz.cm/google-publisher

<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>

Pagination
Use rel="next" and rel="prev" in the <head> section
to indicate the relationship between paginated URLs
First Page - http://example.com/article

More information at https://dev.twitter.com/docs/cards
<link rel="next" href="http://example.com/article?pg=2">

Google+
Google+ will extract information from Open Graph properties, title
and meta description tags, or Schema.org microdata (recommended).
<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">

Second Page - http://example.com/article?pg=2
<link rel="prev" href="http://example.com/article">
<link rel="next" href="http://example.com/article?pg=3">

Final Page - http://example.com/article?pg=3
<link rel="prev" href="http://example.com/article?pg=2">

</head>

More information at https://developers.google.com/+/web/snippet/

The Web Developer’s SEO Cheat Sheet

More information at http://mz.cm/rel-next

V2.1

|

moz.com

|

© 2013 SEOmoz

3
Targeting Multiple Languages

Mobile Web Development

Declare language attribute in the HTML element

1

<html lang="fr">

URL Structures for Country & Language Targeting
ccTLDs (Country Level Only)

Subdomains with gTLDS

example.de

Responsive Design
Uses CSS to alter the rendering of the page on the
device using media queries

Example:

de.example.com/

/* Phones */
@media (max-width: 767px) { ... }
/* Tablets to Desktops */
@media (min-width: 768px) and (max-width:
992px) { ... }

Subdirectories with gTLDS
example.com/de/

rel="alternate" hreflang="x"

/* Large devices */
@media (min-width: 1200px) { ... }

Annotate alternate language & country versions of content
HTML version in <head>
<link rel="alternate" hreflang="x-default" href="http://www.example.com/" /> (Specifies Default)

2

<link rel="alternate" hreflang="de" href="http://example.com/de/" /> (Specifies Language)

Serves different HTML and CSS on the same URL, varied by user agent

<link rel="alternate" hreflang="de-ES" href="http://example.com/de-es/" /> (Specifies Language + Region)

HTTP/1.1 200 OK

Sitemap version

Content-Type: text/html

<?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

Dynamic Serving via Vary HTTP Header

rel="alternate" hreflang="en"

href="http://example.com/english/" />

</url>
<url>
<loc>http://example.com/deutsch/</loc>

Vary: User-Agent
Content-Length: 5710

(...rest of HTTP response headers...)

3

Separate URLs
Identify mobile and desktop versions using rel="alternate"
and rel="canonical"

<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>

Desktop page: http://example.com/

Popular Languages

Popular Regions

zh	
es	
en	
ar	
hi	

CN 	
US	
IN	
JP	
BR	

Chinese
Spanish
English
Arabic
Hindi

China
United States
India
Japan
Brazil

	

<link rel="alternate" media="only screen and (max-

More language codes can be found at
http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

	

width: 640px)"

More region codes can be found at
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Mobile page: http://m.example.com/
	
<link rel="canonical" href="http://example.com/"/>

The Web Developer’s SEO Cheat Sheet

	href="http://m.example.com/"/>

V2.1

|

moz.com

|

© 2013 SEOmoz

4

More Related Content

Recently uploaded

DESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- IntroductionDESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- Introduction
sivagami49
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
University of Wisconsin-Milwaukee
 
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxinfant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
suhanimunjal27
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
amitlee9823
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
aroranaina404
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
tbatkhuu1
 

Recently uploaded (20)

Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
DESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- IntroductionDESIGN THINKING in architecture- Introduction
DESIGN THINKING in architecture- Introduction
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdfB. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
 
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyHire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
 
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptxinfant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
 
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Web Developer's SEO Cheat Sheet 2013- Moz.com

  • 1. The Web Developer’s SEO Cheat Sheet Important HTML Elements HTTP Status Codes Title tag Best Practices 200 OK/Success <head> <title>Page Title</title> </head> No longer than 60-80 characters Important keywords near the beginning Each title should be unique 302 Temporary Redirect Meta Description Tag 301 Permanent Redirect 404 Not Found 410 Gone (permanently removed) <head> <meta name="description" content="This is an example."> </head> No longer than 155 characters Each description should be unique Well written descriptions influence click-through rate Image 500 Server Error Webmaster Tools Google Webmaster Tools https://www.google.com/webmasters/tools/home Bing Webmaster Tools http://www.bing.com/toolbox/webmaster/ 503 Unavailable (retry later) Yandex Webmaster Tools More information at http://mz.cm/HTTP-codes http://webmaster.yandex.com/ <img src="img/keyword.jpg" alt="keyword" width="100" height="100"> Canonicalization Hyperlinks Text Link Hyperlinking Best Practices Common Duplicate Homepage URLs Canonicalized URL Best Practices <a href="http://www.example.com/ webpage.html">Keyword in Anchor Text</a> Limit links per page to roughly 150 http://www.example.com http://www.example.com/ Use "nofollow" for paid links and untrusted content http://example.com rel="canonical" For image links, the alt attribute serves as anchor text http://www.example.com/index.html <link href="http://www.example.com/" rel="canonical" /> NoFollowed Link <a href="http://www.example.com/ webpage.html" rel="nofollow"> Keyword in Anchor Text</a> http://example.com/index.html Image Link <a href="http://www.example.com/webpage.html"><img src="img/ keyword.jpg" alt="keyword" width="100" height="100"></a> URL Best Practices Common URL Elements http://store.example.com/category/keyword?id=123#top 1 2 3 4 5 6 7 8 1. Protocol 2. Subdomain 3. Root Domain 4. Top-Level Domain 5. Subfolder/Path 6. Page 7. Parameter 8. Named Anchor http://example.com/index.html&sessid=123 More information at http://mz.cm/canonical SEO Tips for URLs • 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 V2.1 | moz.com | © 2013 SEOmoz
  • 2. Robot Control Syntax Robots.txt Location: http://example.com/robots.txt User-agent: googlebot Disallow: /no-google.html Sitemap: http://example.com/sitemap.xml More information at http://www.robotstxt.org/robotstxt.html X-Robots Location: Sent in the HTTP headers X-Robots-Tag: noindex More information at http://noarchive.net/xrobots/ Meta Robots Location: In the html <head> <meta name="ROBOT NAME" content="ARGUMENTS" /> More information at http://www.robotstxt.org/meta.html Important User-agents Robots Best Practices While robots.txt may restrict crawling, only Meta Robots and X-Robots will remove URLs from search results. Arguments can be: 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) For robots.txt, robots meta tags & X-Robots-Tag User-agent in HTTP(S) requests Googlebot (can be used as default for most Google crawlers) Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) Googlebot-News Googlebot-News Googlebot-Image Googlebot-Image/1.0 Googlebot-Mobile [various mobile device types] (compatible; Googlebot-Mobile/2.1; +http://www. google.com/bot.html) Googlebot-Mobile (Mobile Smartphones) 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) Mediapartners-Google (Mobile Adsense) or Mediapartners [various mobile device types] (compatible; Mediapartners-Google/2.1; +http://www. google.com/bot.html) If the robots <META> tag is not defined, the default is "INDEX,FOLLOW" Sitemap Syntax XML Sitemaps Default Locations <?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> http://www.example.com/sitemap.xml Mediapartners (Adsense) Mediapartners-Google http://www.example.com/sitemap.xml.gz Bingbot Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Baiduspider Mozilla/5.0 (compatible; Baiduspider/2.0; +/web/20130307230956/http://www. baidu.com/search/spider.html) Yandexbot Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots) FacebookExternalHit facebookexternalhit/1.1 (+http://www. facebook.com/externalhit_uatext.php) Rogerbot Mozilla/5.0 (compatible; rogerBot/1.0; UrlCrawler; http://moz.com/help/pro/ rogerbot-crawler) Sitemap Index File <?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> The Web Developer’s SEO Cheat Sheet http://www.example.com/sitemap.gz Other Common Sitemap Types: Mobile News Image Video V2.1 | moz.com | © 2013 SEOmoz 2
  • 3. Important Metadata Google Authorship & Publisher Facebook Open Graph Google+ Authorship <head> For <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="fb:admins" content="your-Facebook-page-user-ID"> </head> More information at https://developers.facebook.com/docs/opengraph/ Twitter Cards 2 businesses, brands, products and organizations: Link your content to your Google+ profile Link your homepage to your Google+ profile <a href="[profile_ url]?rel=publisher">Google</a> Link back to your site from the ‘Contributor’ section of your Google+ profile Link to your website from your Google+ page's profile More information at http://mz.cm/google-author <meta property="og:image" content="http://www.your-site.com/image.jpg"> author information in Google search results: <a href="[profile_ url]?rel=author">Google</a> 1 <meta property="og:url" content="http://www.your-site.com/"> <meta property="og:site_name" content="your-site-name"> Google+ Publisher More information at http://mz.cm/google-publisher <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> Pagination Use rel="next" and rel="prev" in the <head> section to indicate the relationship between paginated URLs First Page - http://example.com/article More information at https://dev.twitter.com/docs/cards <link rel="next" href="http://example.com/article?pg=2"> Google+ Google+ will extract information from Open Graph properties, title and meta description tags, or Schema.org microdata (recommended). <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"> Second Page - http://example.com/article?pg=2 <link rel="prev" href="http://example.com/article"> <link rel="next" href="http://example.com/article?pg=3"> Final Page - http://example.com/article?pg=3 <link rel="prev" href="http://example.com/article?pg=2"> </head> More information at https://developers.google.com/+/web/snippet/ The Web Developer’s SEO Cheat Sheet More information at http://mz.cm/rel-next V2.1 | moz.com | © 2013 SEOmoz 3
  • 4. Targeting Multiple Languages Mobile Web Development Declare language attribute in the HTML element 1 <html lang="fr"> URL Structures for Country & Language Targeting ccTLDs (Country Level Only) Subdomains with gTLDS example.de Responsive Design Uses CSS to alter the rendering of the page on the device using media queries Example: de.example.com/ /* Phones */ @media (max-width: 767px) { ... } /* Tablets to Desktops */ @media (min-width: 768px) and (max-width: 992px) { ... } Subdirectories with gTLDS example.com/de/ rel="alternate" hreflang="x" /* Large devices */ @media (min-width: 1200px) { ... } Annotate alternate language & country versions of content HTML version in <head> <link rel="alternate" hreflang="x-default" href="http://www.example.com/" /> (Specifies Default) 2 <link rel="alternate" hreflang="de" href="http://example.com/de/" /> (Specifies Language) Serves different HTML and CSS on the same URL, varied by user agent <link rel="alternate" hreflang="de-ES" href="http://example.com/de-es/" /> (Specifies Language + Region) HTTP/1.1 200 OK Sitemap version Content-Type: text/html <?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 Dynamic Serving via Vary HTTP Header rel="alternate" hreflang="en" href="http://example.com/english/" /> </url> <url> <loc>http://example.com/deutsch/</loc> Vary: User-Agent Content-Length: 5710 (...rest of HTTP response headers...) 3 Separate URLs Identify mobile and desktop versions using rel="alternate" and rel="canonical" <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> Desktop page: http://example.com/ Popular Languages Popular Regions zh es en ar hi CN US IN JP BR Chinese Spanish English Arabic Hindi China United States India Japan Brazil <link rel="alternate" media="only screen and (max- More language codes can be found at http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes width: 640px)" More region codes can be found at http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Mobile page: http://m.example.com/ <link rel="canonical" href="http://example.com/"/> The Web Developer’s SEO Cheat Sheet href="http://m.example.com/"/> V2.1 | moz.com | © 2013 SEOmoz 4