- 发布日期:2014-04-30
- 点击数:1265
- 回到首页
therearecertainelementsofcodethatshouldalwaysbeincludedwhenbuildingyourwebsitesandblogsthatwillhelpthesearchenginesloveyouandgiveyoumorelimelightintheserp’s.someoftheseareobviouswhileothersarerarelyused,sohavealookthroughthelistandmakesureyouareusingallofthepointsincluded.afterall,youwantasmuchnaturaltrafficasyoucangetright?thiswillhelp.
ifyou’reunsureofanything,doaquickgooglesearchtolearnandimplementit.
importanthtmlseotags
titletag:
<head><title>keywordtitlehere</title></head>
headertags(h1,h2,h3,h4):
<h1>mostimportantheadertag</h1>
<h2>secondmostimportantheadertag</h2>
<h3>thirdmostimportantheadertag</h3>
<h4>fourthmostimportantheadertag</h4>
bold/strong:
<bold>keyword</bold>
<strong>keyword</strong>
image:
<imgsrc=”image.jpg”alt=”keyword”/>
hyperlink:
<ahref=”http://www.example.com/index.html”title=”keyword”>keywordanchortext</a>
hyperlink(notfollowed):
<ahref=”http://www.example.com/index.html”title=”keyword”rel=”nofollow”>keywordanchortext</a>
theaboveshowsbasichtmlthatthesearchengineslookfortodeterminewhatyoursiteisaboutandwhatkeywordsitrelatesto.theyareallimportantandshouldbeusedoneachpageofyoursiteifpossible.thebelowshowsrecommendedtitletagsyntax:
keyword<category|websitetitle
itisalwaysaverygoodideatoaddyourkeywordstothepagetitle,butdonotoverdoitbykeywordstuffingasthetitleshouldnotbemorethan70charactersinlength.
searchengineindexinglimits
thebelowdoesnotapplytoauthoritywebsitesbutisrelevanttoan‘average’site.
pagefilesize:nomorethan150kilobytes(beforeimages,attachmentsandcssetc)
numberoflinks:nomorethan100uniquelinksperpage.
titletag:nomorethan70charactersinlength.
metadescription:nomorethan155charactersinlength.
urldepth:nomorethan4–forexample:
badexample=http://www.example.com/category/places/items/brazil/rio
goodexample=http://www.example.com/places/rio
inadditiontotheabove,thenumberofparametersinaurlshouldbenomorethantwo.
sitemapsyntax
<?xmlversion=”1.0”encoding=’utf-8’?>
<urlsetxmlns=’http://www.sitemaps.org/schemas/sitemap/0.9’>
<url>
<loc>http://www.example.com/</loc>
<lastmod>1987-05-25</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
thelocationofyourxmlsitemapshouldbesettoadefaultlocationwherethesearchengineswillautomaticallylookforit.theseareasfollows:
http://www.example.com/sitemap.xml
http://www.example.com/sitemap.xml.gz
http://www.example.com/sitemap.gz
ifyouareunsureaboutcreatingyourownxmlsitemapyoucanfindoutmoreandmakeyourownforfreeat–http://www.xml-sitemaps.com/
robots.txtsyntax
user-agent:*
disallow:/privatefolder/
disallow:/privatefile.html
user-agent:googlebot/2.1
disallow:/nogoogle.html
sitemap:http://www.example.com/sitemap.xml
robotsmetatag
<metaname=”robotname”content=”arguments”/>
therobotnameabovecaneitherbe“robots”forallrobotsoraspecificuser-agentrobotasbelow.
noindex–pageinnotindexed.
nofollow–allofthelinksonapagebecomeno-follow.
noarchive–thepageisnotcached.
noodp-stopsthedescriptionandtitletagoverwritebydmozdirectory(homepageonly)
noydir–stopsthedescriptionandtitletagoverwritebyyahoodirectory
nosnippet–stopsgooglegeneratingadescriptionbasedonon-pagetext.
commonrobottraps
-inputforms
-sessionidsinurl
-pagesrestrictedbycookies
-frames
-logins