To Make 100 % SEO based website

1- Page Title

• Each page should have unique title.

• Title characters would be relevant to the content on the page

• Preferable title length include space is 66 Characters

• Below way is preferable unique keyword should be first in title with repeated text like

• i.e

<title> Video - Teentimelive.com | Beta</title>

<title> Game - Teentimelive.com | Beta</title>

<title>User profile - Teentimelive.com | Beta</title>


2- Meta description

• Each page should have well known and contents matching description.

• There should be maximum 150 Character length of meta description

• Never use Meta in tag use ‘meta’

• i.e <meta name="description" content="your_keywords_here followed by a statement about your product service or organization." />


3- Meta Keywords

• Each page should have well known and page contents matching keywords.

• Meta keywords should be comma separated

• There should be maximum 10 keywords in meta tag

• Never use Meta in tag use ‘meta’

• Approximately 800 characters in this tag (including spaces).

• Keywords would be squeeze

• i.e <meta name="keywords" content=" beat, buy, download, fix, order " />


4- Title Meta Keywords and Description sequence

• Use this below sequence for tags

• i.e

<title>User profile - Teentimelive.com | Beta</title>

<meta name="description" content="your_keywords_here followed by a statement about your product service or organization." />

<meta name="keywords" content=" beat, buy, download, fix, order " />


5- Use Headings

• Headings play an important role in organizing information, so be sure to include at least H1-H3 when assembling your page.

• Try to get at least 400+ words on each page.

• i.e <h1>Teen Time Live Featured Videos </h1>

<style type="text/css">

h1{ font-size: 18px; }

h2{ font-size: 16px; }

h3{ font-size: 14px; }

</style>


6- Use Title and ALT Attributes

• In all anchor tags use title attribute with relevant keyword in Title field

• In all Image tags use alt attribute field with relevant keyword in Alt field

• i.e

<a href="http://www.teentimelive.com/forum/ " title="Teentimelive Forum">Forum</a>

<img src=" http://www.teentimelive.com/img/image01.jpg" alt="All Videos" />


7- Image Name

• Use proper name instead abbreviation name for images

• i.e

<img src=" http://www.teentimelive.com/img/golf-putters-01.jpg" alt="golf putters " />


8- Create Sitemap.xml

• create xml based site map and placed in web root directory

• Sitemap.xml should be properly validated

• Should be accessible like http://www.teentimelive.com/sitemap.xml

• Approved the sitemap from google, yahoo and MSN web master tools

• i.e

<?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>2009-01-01</lastmod>

<changefreq>monthly</changefreq>

<priority>1.0</priority>

</url>

</urlset>


9- Sitemap web Page

• There should be a page which contains all public accessible pages link in the form of anchor tag


10- Create robots.txt file

• There should rebots.txt file which have list of no accessible folders or file path

• Robots.txt should be at web root directory of website

• i.e robots.txt

User-agent: *

Disallow: /cgi-bin/

Disallow: /includes/

Disallow: /css/


11- Validate your HTML and CSS

• HTML and CSS should be properly validate by using

http://validator.w3.org


12- Back links

• Use as maximum back links

javascript isset()

Have you ever wanted to test the existance of a javascript variable
(an array item for example) ?
Just like in PHP, I’ve found a method to do this.

The function returns true if the variable is set or false if the variable was not set.
A variable to be set must be initialized.
The starting point was that an unitialized variable has the type ‘undefined’.

A basic method can look like this:




Code (javascript)



function isset(varname){

return(typeof(varname)!=‘undefined’);

}

 


Some problems appear with this implementation, as Glen reported.



One problem is that when you pass an undefined variable, javascript throws an exception.

The other problem is that function member names can mess up the detection. (ex: pop() for array)

So here is a modified version. Please note the try/catch trick:



Code (javascript)


<script type="text/javascript">


function isset(varname)


{

try

{

var t = typeof(varname);

}

catch(e) {return false;}



if(t!==‘undefined’ && t != ‘function’) return true;

else

 return false;


}


var global_var = new Array();


function test()

{

var local_var = "xx";



try

{          

document.writeln("Test for function name (should be false) global_var[\"pop\"].Answer: " + isset(global_var["pop"]) + "


"
); // returns false - as global_var.pop() is a function

}

catch(e) {alert(e) /*code for not set*/}


try

{          


document.writeln("Test for global var (should be true).\nAnswer: " + isset(global_var) + "

"
); // returns true as global_var is set

}

catch(e) {alert(e) /*code for not set*/}



try

{          

document.writeln("Test for defined local var (should be true).Answer: " + isset(local_var) + "

"
); // the script does not support testing local vars… always returns false


}

catch(e) {alert(e) /*code for not set*/}


try

{          

document.writeln("Test for bogus var which is not defined (should be false).Answer: " + isset(bogus) + "


"
); // returns false as bogus var is not defined

}

catch(e) {alert(e) /*code for not set*/}



}


test();



</script>