Jump to content

User:Barrette

From Wikipedia, the free encyclopedia

JeanPaul Barrette

WTO,ITC,CTC,CCC,H.mgt,H.ops,B.Sc,B.Mkt,B.Psy,APG,OGS
(c) Wikipedia
(c) wikiTravel

•  Web Pages

[edit]

The  90 lines of CODE  that EVERY web page should have between the  <head> ... </head>  of each page, so that search engines can index it properly.

* Ensure that each line is in the correct order, for proper execution
* Remember to a computer 1 + 1 = 9 ( when told it by a 48 75 6D 61 6E or uaw nH ? )
HTML: code
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en' dir='ltr'>

<head>
  <!-- Robots: Google -->
  <meta name='verify-v1' content=' --- google meta CODE --- ' />
  <meta name='Google' content='index,follow,snippet,noarchive' />
  <meta name='Googlebot' content='index,follow,snippet,noarchive' />
  <!-- Yahoo     -->
  <meta name="y_key" content=" --- yahoo meta CODE --- ">
  <meta name="Slurp" content="index,follow,snippet,noarchive" />
  <!-- Wiki      -->
  <meta name='Grub' content='index,follow,snippet,noarchive' />
  <!-- Ask       -->
  <meta name='Teoma' content='index,follow,snippet,noarchive' />
  <meta name='Askjeeves' content='index,follow,snippet,noarchive' />
  <!-- MSN       -->
  <meta name='MSNBot' content='index,follow,snippet,noarchive' />
  <!-- Infoseek  -->
  <meta name='Marvin' content='index,follow,snippet,noarchive' />
  <meta name='Infoseek' content='index,follow,snippet,noarchive' />
  <!-- Lycos     -->
  <meta name='Lycos' content='index,follow,snippet,noarchive' />
  <!-- AltaVista -->
  <meta name='Scooter' content='index,follow,snippet,noarchive' />
  <!-- Robots: ALL    -->
  <meta name='Robots' content='index,follow,noimageindex,nosnippet,noarchive' />
  <meta name='Revisit-After' content='21 days' />
  <meta name='Resource-Type' content='document' />
  <meta name='Distribution' content='global' />
  <meta name='Rating' content='general' />
  <meta http-equiv='Expires' content='0' />

  <!-- Contents -->
<title>Template :: Descriptive Title of Page</title>
  <meta name='Keywords' content='-- Template --,Keyword 2,Keyword 3,Keyword 4,Keyword 5,Keyword 6,Keyword 7,Keyword 8,' />
  <meta name='Description' content='-- Template -- :: Website name :: Short description about what is on this page' />
  <meta name='Copyright' content='Design Copyright © 1990-2008 JP BARRETTE & Associates' />
  <meta name='Author' content='JP BARRETTE & Associates' />
  <meta name="Generator" content=' --- Name of program that created the webPage with version # --- ' />
  <meta name='MSSmartTagsPreventParsing' content='True' />
  <meta name='Layout-Width' content='800' />
  <meta name='Layout-Height' content='600' />
  <meta http-equiv='Last-Modified' content='01/06/2009 12:00:00 GMT' />
  <meta http-equiv="Reply-To" content=" -- REPLY-TO email address -- " />
  <meta http-equiv='Window-Target' content='_top' />
  <meta http-equiv='ImageToolbar' content='False' />
  <meta http-equiv='Content-Type' content='text/html; media=screen; charset=utf-8;' />
  <meta http-equiv='Content-Language' content='en' />
  <meta http-equiv='Content-Type-Style' content='text/css' />
  <meta http-equiv='Content-Type-Script' content='text/javascript' />

  <!-- Resourses -->
  <script language='JavaScript' type='text/javascript' src='res/site.js'></script>
  <script language='JavaScript' type='text/javascript' src='res/getCalDate.js'></script>
  <script language='JavaScript' type='text/javascript'> var GB_ROOT_DIR = 'http:// -- domain name -- /greybox/'; </script>
  <script language='JavaScript' type='text/javascript' src='greybox/AJS.js'></script>
  <script language='JavaScript' type='text/javascript' src='greybox/AJS_fx.js'></script>
  <script language='JavaScript' type='text/javascript' src='greybox/gb_scripts.js'></script>
  <!--[if lt IE 7]><link rel='stylesheet' type='text/css' href='res/iebehavior.css' media='screen' /><![endif]-->
  <style type='text/css' media='screen'>
     /* <![CDATA[ */  @import url(res/site.css);
                      @import url(res/page.css);
                      @import url(greybox/gb_styles.css);  /* ]]> */
  </style>
  <style type='text/css' media='print'>
     /* <![CDATA[ */  @import url(res/print.css);  /* ]]> */
  </style>
<script type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
</script>
  <link rel='Shortcut Icon' href='img/html.ico' />
  <link rev="made" href="mailto:jpb.webdesign@gmail.com">                   <!-- Required for copyright to work -->
</head>

<body>

   <!-- Enter Your Content here -->

</body>
<!--  Copyright - required for ALL files to work properly: *.css *.js *.html *.php *.xml *.img *.snd *.swf *.avi *.fnt
   --------------------------------------------------------------------------------------------------------------------
   Site Design : (c) 2000-2009 JP BARRETTE & Associates - All Rights Reserved - All Media - Worldwide
        Author : JeanPaul Barrette, WTO,ITC,CTC,CCC,H.ops,H.mgt,B.Sc,B.Mkt,B.Psy.      REV : 09.02.09
         eMail : jpb.WebDesign@gMail.com                    Website : http://www.jpbarrette.org/               -->
</html> 

•  FILE :: robots.txt

[edit]

The  robots.txt  file should be loaded into the  /ROOT DIRECTORY  of your web site hosting server.

TEXT: code
Sitemap: http://---- domain ----/sitemap.xml

# --------------------
# robots.txt :: Access
# --------------------
User-agent: Google            # Google
User-agent: Googlebot         # Google
User-agent: Slurp             # Yahoo
User-agent: Teoma             # Ask
User-agent: askjeeves         # Ask
User-agent: MSNBot            # MSN
User-agent: Grub              # Wiki
User-agent:                   # moreover
User-agent: atn               # All That Net
User-agent: digger            # Diggit !
User-agent: informant         # Search the web
User-agent: infoseek          # Infoseek
User-agent: lycos             # Lycos
User-agent: marvin            # Infoseek
User-agent: robozilla         # Mozilla
User-agent: scooter           # AltaVista
User-agent: smartspider       # Travel-Finder
User-agent: spider_monkey     # MPRM Group

Disallow: /dnld/
Disallow: /greybox/
Disallow: /img/
Disallow: /res/

Allow: /public
Request-rate: 50/14400         # 1 pg / 5 min. over 4 hrs.
Visit-time: 06:00-10:00        # 01:00 to 05:00 EST

# -----------------------
# robots.txt :: NO Access
# -----------------------
User-agent: *                  # All other robots / spiders / etc.

Disallow: /dnld/
Disallow: /greybox/
Disallow: /img/
Disallow: /res/
Disallow: /

Request-rate: 100/5             # 100 pg / 5 sec.  impossable - it takes 5 sec / page
Visit-time: 05:00:00-05:00:02   # 2 sec to visit site

•  FILE :: sitemap.xml

[edit]

The  sitemap.xml  file should be loaded into the  /ROOT DIRECTORY  of your web site hosting server.

Sitemap: code
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='sitemap.xsl'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
  <loc>http:// {--- Your Domain ---} /</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>yearly</changefreq>
  <priority>0.9</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /robots.txt</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.8</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /sitemap.xml</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.8</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /menu.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.7</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /search.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.7</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /index.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.7</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /about.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /contact.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /copyright.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /faq.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /privacy.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /terms.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <loc>http:// {--- Your Domain ---} /use.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.6</priority>
</url>
<url>
  <!-- Copy: for as many HTML pages needed -->
  <loc>http:// {--- Your Domain ---} /{FILE}.html</loc>
  <lastmod>2008-12-28</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.5</priority>
</url>
</urlset>

•  FILE :: sitemap.xsl

[edit]

The  sitemap.xsl  file should be loaded into the  /ROOT DIRECTORY  of your web site hosting server.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
 xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:fn="http://www.w3.org/2005/xpath-functions"
 xmlns:xna="http://www.sitemaps.org/schemas/sitemap/0.9" exclude-result-prefixes="xna">
 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
 <xsl:template match="/">
  <html xmlns="http://www.w3.org/TR/xhtml1/strict">
  <head>
    <title>Sitemap: { Your Domain } </title>
  </head>
  <body bgcolor="#009900">
  <table border="0" align="center" cellpadding="2" cellspacing="0" width="66%">
  <thead><tr><th colspan="4" style="text-align:center; font-size:26px; font-weight:bold; background:#EEF; color:#009;">
             Sitemap:  { Your Domain } </th></tr></thead>
  <tbody><tr style="font-weight:bold; background:#FC0; color:#F00;">
         <th align="center" width="50%"> Location </th>
         <th align="center" width="20%"> LastMod </th>
         <th align="center" width="15%"> Change </th>
         <th align="center" width="15%"> Priority </th></tr>
             <xsl:for-each select="xna:urlset/xna:url">
         <tr><td bgcolor="#eeffee"><xsl:value-of select="xna:loc" /></td>
             <td align="center" bgcolor="#ffff99"><xsl:value-of select="xna:lastmod" /></td>
             <td align="center" bgcolor="#eeeeff"><xsl:value-of select="xna:changefreq" /></td>
             <td align="center" bgcolor="#ffeeee"><xsl:value-of select="xna:priority" /></td></tr>
             </xsl:for-each>
  </tbody>
  <tfoot><tr><td align="center" style="font-weight:bold; background:#FF9; color:#900;">
             <xsl:value-of select="count(xna:urlset/xna:url)" /></td>
         <td align="left" colspan="3" style="font-weight:bold; background:#FC0; color:#F00;"> .: Total URL's :. </td></tr>
  </tfoot></table>
  </body>
  </html>
 </xsl:template>
</xsl:stylesheet>

•  Notes

[edit]


  15:26, 13 January 2010 (UTC)    Wikipedia    WikiTravel    Profile    Blog    Twitter

•  Wiki Reference

[edit]

 • HTML v5   • xHTML   • CSS v3

[edit]

•  Categories

[edit]