<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6717633461788044275</id><updated>2025-05-01T03:14:18.560-07:00</updated><category term="SEO"/><category term="PHP"/><category term="MySql"/><category term="UI"/><category term="Useful Links"/><title type='text'> Blog with Veer</title><subtitle type='html'>Lot of fun, my Experiments, Tutorials and lots of stuff I work with....Coming soon</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-9188266289788305674</id><published>2013-06-21T02:38:00.001-07:00</published><updated>2013-06-21T02:39:03.619-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="UI"/><title type='text'>UI - CSS for Buttons with different shapes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHCvw0zlntv7St6f62dE8Vqn5zHPe-RB8tCh2JNoCN-TPGIncmpIFFr1sPsoY-cdsiUZQeGUMbU7sfMISTnr6SDVAQrXG6QbwZgzKVZIv5TkTVZ4P2XpDDEcXX8a49CrUjr9v2fQemKNM6/s1600/css-for-buttons.gif&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHCvw0zlntv7St6f62dE8Vqn5zHPe-RB8tCh2JNoCN-TPGIncmpIFFr1sPsoY-cdsiUZQeGUMbU7sfMISTnr6SDVAQrXG6QbwZgzKVZIv5TkTVZ4P2XpDDEcXX8a49CrUjr9v2fQemKNM6/s1600/css-for-buttons.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://alexwolfe.github.io/Buttons/&quot;&gt;Buttons&lt;/a&gt; - a CSS library for creating highly customizable, flexible and modern web buttons.&lt;br /&gt;
&lt;br /&gt;
It is built with Sass + Compass and has support for different shapes like square, rounded or circular buttons that can be flat or not and having custom effects (like glow).&lt;br /&gt;
&lt;br /&gt;
The sizes, colors, effects and fonts used can all be changed with the help of variables and it can be extended easily.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href=&quot;http://alexwolfe.github.io/Buttons/&quot;&gt;http://alexwolfe.github.io/Buttons/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/9188266289788305674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2013/06/ui-css-for-buttons-with-different-shapes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/9188266289788305674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/9188266289788305674'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2013/06/ui-css-for-buttons-with-different-shapes.html' title='UI - CSS for Buttons with different shapes'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHCvw0zlntv7St6f62dE8Vqn5zHPe-RB8tCh2JNoCN-TPGIncmpIFFr1sPsoY-cdsiUZQeGUMbU7sfMISTnr6SDVAQrXG6QbwZgzKVZIv5TkTVZ4P2XpDDEcXX8a49CrUjr9v2fQemKNM6/s72-c/css-for-buttons.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-1836296697162248628</id><published>2011-05-25T22:03:00.000-07:00</published><updated>2011-05-25T22:03:10.694-07:00</updated><title type='text'>wagatukepo sitynozfau mazidipole_vukertalet</title><content type='html'>&lt;div class=ExternalClass2EBDAFBD42854A258D2B3EADD4164C51&gt;&lt;div class=post-content&gt;&lt;p&gt;Does Google see underscores &amp;quot;_&amp;quot; and hyphens &amp;quot;-&amp;quot; as dividers ?&lt;/p&gt;

&lt;p&gt;The answer is: &lt;strong&gt;Google sees hyphens as dividers in URLs and body text, and ignores underscores (underscore is not considered as a divider by Google)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Below are the tests made by Fabien Faceries (SEO Expert):&lt;/p&gt;

&lt;p&gt;Google Test 1 : Underscores or hyphens as dividers in URL
The following URL: wagatukepo-sitynozfau-mazidipole_vukertalet.php contains 4 keywords separated by hyphens or underscores.
Before we started our test we did search Google for each of these keywords: wagatukepo, sitynozfau, mazidipole and vukertalet and there were no Google results.
Few days later once Google indexed our new URL we did the same search for each of these keywords.&lt;/p&gt;

&lt;p&gt;Results:
wagatukepo: 1 Google result
sitynozfau: 1 Google result&lt;/p&gt;

&lt;p&gt;mazidipole: No Google result
vukertalet: No Google result&lt;/p&gt;

&lt;p&gt;mazidipole_vukertalet: 1 Google result&lt;/p&gt;

&lt;p&gt;Conclusion: Google sees hyphens as dividers in URLs and ignores underscores&lt;/p&gt;

&lt;p&gt;Google Test 2 : Underscores or hyphens as dividers in Body text
In wagatukepo-sitynozfau-mazidipole_vukertalet.php we did type keywords: bozaketerp-boujulanbi et vorismetapalu_terplamili
As for Google test 1, we did search Google for each of these keywords: bozaketerp, boujulanbi, vorismetapalu and terplamili and there were no Google results.
Few days later once Google indexed our new URL we did the same search for each of these keywords.&lt;/p&gt;

&lt;p&gt;Results:
bozaketerp: 1 Google result
boujulanbi: 1 Google result&lt;/p&gt;

&lt;p&gt;vorismetapalu: No Google result
terplamili: No Google result&lt;/p&gt;

&lt;p&gt;vorismetapalu_terplamili: 1 google result&lt;/p&gt;

&lt;p&gt;Conclusion: Google sees hyphens as dividers in Body text and ignores underscores (underscore is not considered as a divider by Google)&lt;/p&gt;

&lt;p&gt;Our test confirms what GoogleGuy said in &lt;a href=&quot;http://www.webmasterworld.com/forum3/23371.htm&quot;&gt;WebmasterWorld&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Yah, I&#39;d stick to hyphens, periods, or commas. Most people seem to prefer hyphens. If you use an underscore &#39;_&#39; character, then Google will combine the two words on either side into one word. So bla.com/kw1_kw2.html wouldn&#39;t show up by itself for kw1 or kw2. You&#39;d have to search for kw1_kw2 as a query term to bring up that page.&lt;/p&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt; &lt;strong&gt;Reference Link:&lt;/strong&gt;&lt;a href=&quot;http://www.prweaver.com/blog/2004/08/26/2-hyphen-and-underscore&quot;&gt;Google test : hyphen and underscore within URL or BODY&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/1836296697162248628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2011/05/wagatukepo-sitynozfau.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1836296697162248628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1836296697162248628'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2011/05/wagatukepo-sitynozfau.html' title='wagatukepo sitynozfau mazidipole_vukertalet'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-7062095732218837951</id><published>2011-03-31T22:11:00.000-07:00</published><updated>2011-03-31T22:11:45.278-07:00</updated><title type='text'>Google - Some useful SEO links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.ecreativeim.com/blog/category/seo-basics/&quot;&gt;SEO Basics | Internet Marketing Blog - Search Engine Optimization, Pay Per Click &amp;amp; More!&lt;/a&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/7062095732218837951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-useful-seo-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/7062095732218837951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/7062095732218837951'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-useful-seo-links.html' title='Google - Some useful SEO links'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-871234779863318876</id><published>2011-03-23T05:39:00.001-07:00</published><updated>2011-03-23T21:17:41.850-07:00</updated><title type='text'>Google - Some useful PHP links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: orange; font-size: x-large;&quot;&gt;PHP&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.w3schools.com/dom/default.asp&quot;&gt;XML DOM Tutorial&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://textpattern.net/wiki/index.php?title=Using_XAMPP_%28Apache-MySQL-PHP-Perl%29_for_Windows&quot;&gt;Using XAMPP (Apache-MySQL-PHP-Perl) for Windows - Textbook&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://simplehtmldom.sourceforge.net/manual.htm&quot;&gt;PHP Simple HTML DOM Parser&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.electrictoolbox.com/php-file-get-contents-curl/&quot;&gt;PHP&#39;s file_get_contents and CURL functions&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://neoalchemy.org/tablePagination.html&quot;&gt;NeoAlchemy » Table Pagination&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://tympanus.net/codrops/2009/11/17/jpaginate-a-fancy-jquery-pagination-plugin/&quot;&gt;jPaginate: A Fancy jQuery Pagination Plugin | Codrops&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://nefariousdesigns.co.uk/archive/2006/08/object-oriented-php-part-1-definition/&quot;&gt;Object-Oriented PHP Part 1: Definition - Nefarious Designs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://shiflett.org/&quot;&gt;Chris Shiflett: PHP and Web Application Security&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://rest.elkstein.org/2008/02/what-is-rest.html&quot;&gt;Learn REST: A Tutorial: 1. What is REST?&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.zend.com/services/certification/php-5-certification/&quot;&gt;Zend PHP 5 Certifcation - Exam Information - Zend.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.php.net/%7Ehelly/php/ext/spl/main.html&quot;&gt;SPL-StandardPHPLibrary: SPL - Standard PHP Library&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://support.microsoft.com/kb/213367&quot;&gt;How to compare data in two columns to find duplicates in Excel&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.filecrop.com/search.php?w=codeigniter+tutorial&amp;amp;size_i=0&amp;amp;size_f=1048576&amp;amp;engine_r=1&amp;amp;engine_m=1&quot;&gt;ebookdownload&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://shiflett.org/blog/2005/apr/zend-certification-self-test&quot;&gt;Chris Shiflett: Zend Certification Self Test&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.tutorialized.com/tutorials/PHP/1&quot;&gt;PHP Tutorials - Tutorialized&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.askapache.com/php/custom-phpini-tips-and-tricks.html#menu0-el1&quot;&gt;Custom PHP.ini tips and tricks&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://vijaymodi.wordpress.com/2007/03/03/phpini-settings/&quot;&gt;php.ini settings « Vijay Modi&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.devcha.com/search?q=smarty&quot;&gt;Challenges that each developer faces every day: Search results for smarty&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://apptools.com/&quot;&gt;AppTools.com - Web Development Tools That Enlighten&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.bin-co.com/php/programs/tools/sitemap_generator/&quot;&gt;Google Sitemap Generator &amp;lt; Programs &amp;lt; PHP &amp;lt; Bin-Co&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.troywolf.com/articles/#SERVER&quot;&gt;Internet Application Code Library&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.ecds-tech.com/blog/2010/03/10/php-code-convention/&quot;&gt;Php Code Convention&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.internetofficer.com/seo/302-redirect/&quot;&gt;302 Redirect&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.checkupdown.com/status/E302.html&quot;&gt;HTTP Error 302 Moved temporarily Explained&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://network-tools.com/default.asp?prog=whois&amp;amp;host=www.oasispune.com&quot;&gt;Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS whois www.oasispune.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.askapache.com/php/phpfreaks-eric-rosebrocks-phpmailer-tutorial.html&quot;&gt;PHPMailer tutorial&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://codesnippets.joyent.com/posts/show/1641&quot;&gt;object to an associative array &lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.sitepoint.com/forums/showthread.php?t=438748&quot;&gt;convert object to array. - SitePoint Forums&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://sharethis.com/&quot;&gt;Sharing Widget, Sharing Button, Sharing Plugin - ShareThis&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://wiki.novemberborn.net/sifr/&quot;&gt;sIFR Documentation &amp;amp; FAQ&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://mashable.com/2007/08/31/google-search-api/&quot;&gt;29 Coolest Custom Search Apps Built on Google&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://edoceo.com/contact&quot;&gt;Contact Edoceo - Edoceo, Inc.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.magentocommerce.com/system-requirements&quot;&gt;Magento - System Requirements - eCommerce Software for Growth&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.nczonline.net/about/&quot;&gt;About Nicholas C. Zakas | NCZOnline&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.phpbuilder.com/columns/Jason_Gilmore071310.php3?page=2&quot;&gt;PHPBuilder.com, the best resource for PHP tutorials, templates, PHP manuals, content management systems, scripts, classes and more.&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.wjgilmore.com/videos/watch/build_php_facebook_app&quot;&gt;Facebook Application&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://benalman.com/projects/finder-copy-open-window-paths/&quot;&gt;Ben Alman » Finder Copy Open Window Paths&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://icant.co.uk/articles/things-to-know-about-ajax/load-json.html&quot;&gt;Loading JSON content via Ajax&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.webdesign.org/web-programming/php/benchmark-and-optimize-php-script-speed.14875.html&quot;&gt;Optimize PHP Script Speed | PHP&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.phpbench.com/&quot;&gt;The PHP Benchmark&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.go4expert.com/forums/showthread.php?t=13769&quot;&gt;PHP Code Optimization: Do&#39;s and Don&#39;ts&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://github.com/bauhouse/fluid960gs/tree/&quot;&gt;Sample Admin Panel&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://mpsimple.mijnpraktijk.com/mp_cache.htm&quot;&gt;MP_Cache: Partial Caching for CodeIgniter | mp_simple&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://net.tutsplus.com/tutorials/php/understanding-and-applying-polymorphism-in-php/&quot;&gt;Polymorphism in PHP | Nettuts+&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/&quot;&gt;PHP: A function to return the first n words from a string | Nutt.net&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.coolphptools.com/codeigniter-smarty&quot;&gt;CodeIgniter And Smarty - Perfect Together - Cool PHP Tools&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://php.about.com/od/advancedphp/p/html_php.htm&quot;&gt;Run PHP from HTML - .html as .php - Execute PHP in .html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.seoconsultants.com/articles/1000/server-performance&quot;&gt;Web Server Performance - Web Site Acceleration&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.radinks.com/upload/config.php&quot;&gt;IMAGE File Upload Configuration&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://sixrevisions.com/&quot;&gt;Six Revisions - Web Development and Design Information&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://farinspace.com/us-cities-and-state-sql-dump/&quot;&gt;US Cities and State SQL Dump&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.phpmagicbook.com/htaccess-essential-tricks-for-blog-website-performance-a-guide/&quot;&gt;.htaccess Essential Tricks For Blog/Website Performance – Guide - Tricks - PHP Magic Book - Free PHP Scripts, Tutorials and Downloads&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://launchpad.net/css-sprite-generator&quot;&gt;CSS Sprite Generator in Launchpad&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://maestric.com/doc/&quot;&gt;Docs | Jérôme Jaglale&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.phpro.org/tutorials/Class-Hierachies-And-Overriding.html#1&quot;&gt;PHP Tutorials Examples Class Hierachies And Overriding&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.phpro.org/tutorials/Object-Oriented-Programming-with-PHP.html&quot;&gt;PHP Tutorials Examples Object Oriented Programming with PHP&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;
&lt;a href=&quot;http://weblogtoolscollection.com/regex/regex.php?page=3&quot;&gt;Regular Expressions PHP Tutorial&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.catswhocode.com/blog/15-php-regular-expressions-for-web-developers&quot;&gt;15 PHP regular expressions for web developers&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://articles.sitepoint.com/article/advanced-email-php&quot;&gt;Advanced email in PHP&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://forums.devshed.com/mail-server-help-111/how-to-set-up-php-ini-to-send-mail-from-106329.html&quot;&gt;how to set up php.ini to send mail from local machine - Dev Shed&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://mediakey.dk/%7Ecc/send-email-using-php-phpmailer-and-gmail/&quot;&gt;Send Email using PHP, PHPMailer and Gmail&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;dl&gt;&lt;dd&gt;&lt;/dd&gt;&lt;/dl&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;/ul&gt;
&lt;dl&gt;&lt;dd&gt;&lt;/dd&gt;&lt;/dl&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/871234779863318876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-use-fule-php-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/871234779863318876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/871234779863318876'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-use-fule-php-links.html' title='Google - Some useful PHP links'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-1291829960927618522</id><published>2011-03-23T05:37:00.000-07:00</published><updated>2011-03-23T05:37:41.229-07:00</updated><title type='text'>Google - Some useful Mysql links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: orange; font-size: x-large;&quot;&gt;Mysql&lt;/span&gt;&lt;br /&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;/dt&gt;
&lt;/dl&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.catswhocode.com/blog/10-sql-tips-to-speed-up-your-database&quot;&gt;10 sql tips to speed up your database&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.simple-talk.com/sql/database-administration/ten-common-database-design-mistakes/&quot;&gt;Ten Common Database Design Mistakes&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.pantz.org/software/mysql/mysqlcommands.html&quot;&gt;MySQL Commands&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.tutorialspoint.com/mysql/mysql-database-export.htm&quot;&gt;MySQL Database Export - Backup Methods&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.developer.com/open/article.php/2235521/Pros-and-Cons-of-MySQL-Table-Types.htm&quot;&gt;Pros and Cons of MySQL Table Types — Developer.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.mysqltutorial.org/understand-mysql-table-types-innodb-myisam.aspx&quot;&gt;Understanding MySQL Table Types&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.lullabot.com/blog/importexport-large-mysql-databases&quot;&gt;Import/Export Large MYSQL Databases | Lullabot&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.johnon.com/import-large-file-into-mysql/&quot;&gt;» Import large file into MySQL : use SOURCE command - John Andrews - johnon.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.rvdavid.net/importing-sql-dumps-into-mysql-through-command-line/&quot;&gt;Importing SQL dumps into MySQL through Command line « Mysql « rvdavid: A Web Developer&#39;s Blog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.techiecorner.com/45/turn-on-mysql-query-cache-to-speed-up-mysql-query-performance/&quot;&gt;Turn on MySQL query cache to speed up query performance? - Techie Corner&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;http://www.petefreitag.com/item/390.cfm&quot;&gt;The MySQL Query Cache&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.5/en/string-functions.html&quot;&gt;MySQL :: MySQL 5.5 Reference Manual :: 11.5 String Functions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;dl&gt;&lt;dd&gt;

&lt;/dd&gt;&lt;/dl&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/1291829960927618522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-useful-mysql-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1291829960927618522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1291829960927618522'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-useful-mysql-links.html' title='Google - Some useful Mysql links'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-5943533991951836770</id><published>2011-03-23T05:13:00.000-07:00</published><updated>2011-03-23T05:16:58.600-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Useful Links"/><title type='text'>Google - Some useful htaccess links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: orange; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Htaccess&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://devmoose.com/coding/20-htaccess-hacks-every-web-developer-should-know-about&quot;&gt;20+ .htaccess Hacks Every Web Developer Should Know About | DevMoose&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://htaccesser.apacheblog.de/index-nojs.php&quot;&gt;~apacheblog.de - dot htaccesser~ der .htaccess file generator&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.freewebmasterhelp.com/tutorials&quot;&gt;Free Webmaster Help - Tutorials&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.htpasswdgenerator.com/apache/htaccess.html&quot;&gt;Using .htaccess file&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;




&lt;/ul&gt;
&lt;dl&gt;&lt;dd&gt;&lt;/dd&gt;&lt;/dl&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/5943533991951836770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-useful-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/5943533991951836770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/5943533991951836770'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2011/03/google-some-useful-links.html' title='Google - Some useful htaccess links'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-8968170589017600552</id><published>2010-10-28T04:58:00.000-07:00</published><updated>2011-03-23T04:39:47.300-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><title type='text'>20 HTML Best Practices You Should Follow</title><content type='html'>&lt;p class=MsoNormal style=&#39;margin-bottom:12.0pt&#39;&gt;20 HTML Best Practices You
Should Follow : &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;a
href=&quot;http://sixrevisions.com/web-standards/20-html-best-practices-you-should-follow/&quot;
target=&quot;_blank&quot;&gt;&lt;span style=&#39;text-decoration:none&#39;&gt;&lt;img border=0 width=550
height=200 id=&quot;Picture_x0020_1&quot; src=&quot;cid:image001.jpg@01CB76AD.0C011B50&quot;
alt=&quot;20 XHTML Best Practices for Beginners&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Most of the web pages you encounter is presented to you via HTML, the world
wide web’s markup language. In this article, I will share with you 20 best
practices that will lead to clean and correct markup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;1. Always Declare a Doctype&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;The doctype declaration should be the first thing in your HTML documents.
The doctype declaration tells the browser about the XHTML standards you will be
using and helps it read and render your markup correctly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;I would recommend using the XHTML 1.0 strict doctype. Some developers
consider it a tough choice because this particular standard is less forgiving
than loose or transitional doctype declarations, but it also ensures that your
code abides strictly by the latest standards.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;pre&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//&lt;b&gt;DTD XHTML 1.0 Strict&lt;/b&gt;//EN&amp;quot; &amp;quot;
&lt;a
href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot; target=&quot;_blank&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&lt;/a&gt;
&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;2. Use Meaningful Title Tags&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;/code&gt; tag
helps make a web page more meaningful and search-engine friendly. For example,
the text inside the &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;/code&gt;
tag appears in Google’s search engine results page, as well as in the user’s
web browser bar and tabs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Take for instance, the following example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;pre&gt;&amp;lt;title&amp;gt;Six Revisions - Web Development and Design Information
&amp;lt;/title&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;The example above appears like the following image in Google’s search engine
results page:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;img border=0 width=550 height=224 id=&quot;Picture_x0020_2&quot;
src=&quot;cid:image002.png@01CB76AD.0C011B50&quot;
alt=&quot;http://images.sixrevisions.com/2010/08/22-01_title_example.png&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;3. Use Descriptive Meta Tags&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Meta tags make your web page more meaningful for user agents like search
engine spiders.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Description Meta Attribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;p&gt;The &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;description&lt;/span&gt;&lt;/code&gt; meta
attribute describes the basic purpose of your web page (a summary of what the
web page contains). For each web page, you should place a consise and relevant
summary inside the meta description tag.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;For example, this description:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;pre&gt;&amp;lt;meta name=&amp;quot;description
&amp;quot; 
content=&amp;quot;Six Revisions is a blog that shares 
useful information about web development and design, 
dedicated to people who build websites.
&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;Shows up in Google’s search engine results page as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;img border=0 width=550 height=224 id=&quot;Picture_x0020_3&quot;
src=&quot;cid:image003.png@01CB76AD.0C011B50&quot;
alt=&quot;http://images.sixrevisions.com/2010/08/22-02_description_example.png&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Don’t try to spam your description&lt;/b&gt; with repeated words and phrases
because search engines are intelligent enough to detect that. Instead, just try
to be simple and straightforward in explaining the purpose of your web page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Keywords Meta Attribute&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;meta name=&amp;quot;keywords&amp;quot; content=&amp;quot;web design, web development&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;The &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;keywords&lt;/span&gt;&lt;/code&gt; meta
attribute contains a comma-separated list of key words and phrases that relate
to your web page. These keywords make your web page even more meaningful.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Again, just like with the &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;description&lt;/span&gt;&lt;/code&gt;
meta attribute, avoid repetition of words and phrases; just mention a few words
that aptly describes and categorizes your web page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;4. Use Divs to Divide Your Layout into Major Sections&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Consider dividing your web page into major sections as the first step in
constructing a website design.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;img border=0 width=480 height=190 id=&quot;Picture_x0020_4&quot;
src=&quot;cid:image004.png@01CB76AD.0C011B50&quot;
alt=&quot;http://images.sixrevisions.com/2010/08/22-03_divide_into_sections.png&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Doing so from the start promotes clean and well-indented code. It will also
help you avoid confusion and excess use of divs, especially if you are writing
complex and lengthy markup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;5. Separate Content from Presentation&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Your HTML is your content. CSS provides your content’s visual presentation.
Never mix both.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Don’t use inline styles in your HTML. Always create a separate CSS file for
your styles. This will help you and future developers that might work on your
code make changes to the design quicker and make your content more easily
digestible for user agents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Bad Practice: Inline Styles&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;p&gt;Below, you can see a paragraph element that is styled using the &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;style&lt;/span&gt;&lt;/code&gt; attribute. It will work, but it’s
bad practice.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;pre&gt;&amp;lt;p style=&amp;quot;color:#abc; font-size:14px; 
font-family:arial,sans-serif;&amp;quot;&amp;gt;
I hate to separate my content from presentation&amp;lt;/p&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;6. Minify and Unify CSS&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;A simple website usually has one main CSS file and possibly a few more for
things like &lt;a
href=&quot;http://sixrevisions.com/css/css-tips/css-tip-1-resetting-your-styles-with-css-reset/&quot;
target=&quot;_blank&quot;&gt;CSS reset&lt;/a&gt; and browser-specific fixes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;But each CSS file has to make an HTTP request, which slows down &lt;a
href=&quot;http://sixrevisions.com/web-development/five-ways-to-speed-up-page-response-times/&quot;
target=&quot;_blank&quot;
title=&quot;Five Ways to Speed Up Page Response Times - sixrevisions.com&quot;&gt;website
load times&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;A solution to this problem is to minify (take out unneeded characters such
as spaces, newlines, and tabs) all your code and try to unify files that can be
combined into one file. This will improve your website load times.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;A problem with this approach is that you have to &amp;quot;unminify&amp;quot;
(because it’s hard to read unformatted code) and then redo the minification
process every time you need to update your code. So it’s better to do this at
the end of your production cycle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Online tools to minify and optimize CSS can be found on this list of &lt;a
href=&quot;http://sixrevisions.com/css/css_code_optimization_formatting_validation/&quot;
target=&quot;_blank&quot;&gt;CSS optimizers&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Also, always put your stylesheet reference link inside the &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/code&gt; tags because
it will help your web page feel more responsive while loading.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;7. Minify, Unify and Move Down JavaScript&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Like CSS, never use inline JavaScript and try to minify and unify your
JavaScript libraries to reduce the number of HTTP requests that need to be made
in order to generate one of your web pages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;But unlike CSS, there is one really bad thing about external JavaScript
files: browsers do not allow parallel downloads, which means the browser cannot
download anything while it’s downloading JavaScript, resulting in making the
page feel like it’s loading slowly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;So, the best strategy here is to load JavaScript last (i.e. after your CSS
is loaded). To do this, place JavaScript at the bottom of your HTML document
where possible. Best practice recommends doing this right before the closing &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/code&gt; tag.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;p&gt;&lt;img border=0 width=540 height=210 id=&quot;Picture_x0020_5&quot;
src=&quot;cid:image005.png@01CB76AD.0C011B50&quot;
alt=&quot;Minify, Unify and Move Down JavaScript&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;8. Use Heading Elements Wisely&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Learn to use &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;/code&gt;
to &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;h6&amp;gt;&lt;/span&gt;&lt;/code&gt; elements to
denote your HTML’s content hierarchy. This helps make your content more
meaningful for screen-reading software and search engines, as well as other
user agents. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;h1&amp;gt;This is the topmost heading&amp;lt;/h1&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;h2&amp;gt;This is a sub-heading underneath the topmost heading.&amp;lt;/h2&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;h3&amp;gt;This is a sub-heading underneath the h2 heading.&amp;lt;/h3&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;For blogs, I really recommend using the &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;/code&gt;
element for the blog post’s title instead of the site’s name because this is
the most important thing for search engines.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;WordPress Code Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;h1 class=&amp;quot;entry-title&amp;quot;&amp;gt;&amp;lt;?php the_title(); ?&amp;gt;&amp;lt;/h1&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;9.Use the Right HTML Element at the Right Place&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Learn about all the available HTML elements and use them correctly for a
semantic and meaningful content structure.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;em&amp;gt;&lt;/span&gt;&lt;/code&gt; for &lt;i&gt;em&lt;/i&gt;phasis
and &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;strong&amp;gt;&lt;/span&gt;&lt;/code&gt; for &lt;b&gt;heavy
emphasis&lt;/b&gt;, instead of &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;i&amp;gt;&lt;/span&gt;&lt;/code&gt;
or &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;b&amp;gt;&lt;/span&gt;&lt;/code&gt; (which are
deprecated).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;em&amp;gt;emphasized text&amp;lt;/em&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;strong&amp;gt;strongly emphasized text&amp;lt;/strong&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;Use &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;/code&gt; for
paragraphs. Don’t use &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/code&gt;
to add a new line between paragraphs; use CSS margin and/or padding properties
instead.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;For a set of related elements, use:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;ul type=disc&gt;
 &lt;li class=MsoNormal style=&#39;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo3&#39;&gt;&lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/code&gt;
     (unordered lists) when the order of the list items are not important&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
 &lt;li class=MsoNormal style=&#39;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo3&#39;&gt;&lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;ol&amp;gt;&lt;/span&gt;&lt;/code&gt;
     (ordered lists) when the order of the list items are important&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
 &lt;li class=MsoNormal style=&#39;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo3&#39;&gt;&lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;dl&amp;gt;&lt;/span&gt;&lt;/code&gt;
     (definition lists) for item/definition pairs&lt;o:p&gt;&lt;/o:p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don’t use &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;blockquote&amp;gt;&lt;/span&gt;&lt;/code&gt;
for indentation purposes; use it when actually quoting text.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;10. Don’t Use Divs for Everything&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Sometimes developers end up wrapping &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/code&gt;
tags around multiple &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/code&gt;
tags that contain more &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/code&gt;
tags, creating a mountain of divs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Under the &lt;a
href=&quot;http://dev.w3.org/html5/spec/Overview.html#the-div-element&quot;
target=&quot;_blank&quot;&gt;latest draft of the W3C HTML specification&lt;/a&gt;, a &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/code&gt; is a meaningless element
that should be used &amp;quot;as an element of last resort, for when no other
element is suitable.&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;But many use it even for menial things like displaying inline elements as block
elements (instead of the &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;display:block;&lt;/span&gt;&lt;/code&gt;
CSS property).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Avoid creating mountains of divs by using them sparingly and responsibly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;11. Use an Unordered List (&amp;lt;ul&amp;gt;) for Navigation&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Navigation is a very important aspect of a website design and the &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/code&gt; element combined with CSS
makes your navigation menus semantic (because, after all, a navigation menu is
a list of links) as well as beautiful.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Also, by convention, an unordered list for your navigation menu has been the
accepted markup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;An Example of an Unordered List&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;ul id=&amp;quot;main_nav&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;active&amp;quot;&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;About&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Portfolio&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Services&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Blog&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Contact Us&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/ul&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h4&gt;CSS to Style the Unordered List into a Horizontal Navigation Bar&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;nbsp;#main_nav { position:absolute; right:30px; top:40px;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;#main_nav li { float:left; margin-left:2px; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;#main_nav li a{ font-size:16px; color:#fff;
 text-decoration:none; 
padding:8px 15px; -moz-border-radius:7px; 
-webkit-border-radius:7px; 
border-radius:7px;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;#main_nav li a.active,&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;#main_nav li a:hover{&amp;nbsp; background-color:#0b86cb;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h4&gt;Output&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;p&gt;&lt;img border=0 width=492 height=66 id=&quot;Picture_x0020_6&quot;
src=&quot;cid:image006.jpg@01CB76AD.0C011B50&quot;
alt=&quot;Use an Unordered List (&amp;lt;ul&amp;gt;) for Navigation&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;12. Close Your Tags&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Closing all your tags is a W3C specification. Some browsers may still render
your pages correctly (under Quirks mode), but not closing your tags is invalid
under standards.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;div id=&amp;quot;test&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;img src=&amp;quot;images/sample.jpg&amp;quot; alt=&amp;quot;sample&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;a href=&amp;quot;#&amp;quot; title=&amp;quot;test&amp;quot;&amp;gt;test&amp;lt;/a&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;p&amp;gt;some sample text &amp;lt;/p&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/div&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;13. Use Lower Case Markup&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;It is an industry-standard practice to keep your markup lower-cased.
Capitalizing your markup will work and will probably not affect how your web
pages are rendered, but it does affect code readability.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Bad Practice&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;DIV&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;IMG SRC=&amp;quot;images/sample.jpg&amp;quot; alt=&amp;quot;sample&amp;quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;A HREF=&amp;quot;#&amp;quot; TITLE=&amp;quot;TEST&amp;quot;&amp;gt;test&amp;lt;/A&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;P&amp;gt;some sample text&amp;lt;/P&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/DIV&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h4&gt;Good Practice&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;div id=&amp;quot;test&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;img src=&amp;quot;images/sample.jpg&amp;quot; alt=&amp;quot;sample&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;a href=&amp;quot;#&amp;quot; title=&amp;quot;test&amp;quot;&amp;gt;test&amp;lt;/a&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;p&amp;gt;some sample text &amp;lt;/p&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/div&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;14. Use Alt Attributes with Images&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Using a meaningful &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;alt&lt;/span&gt;&lt;/code&gt;
attribute with &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;img&amp;gt;&lt;/span&gt;&lt;/code&gt;
elements is a must for writing valid and semantic code. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Bad Practice&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;img id=&amp;quot;logo&amp;quot; src=&amp;quot;images/bgr_logo.png&amp;quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&amp;lt;!-- has an alt attribute,
 which will validate, but alt value is meaningless --&amp;gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;img id=&amp;quot;logo&amp;quot; src=&amp;quot;images/bgr_logo.png&amp;quot; &lt;b&gt;alt=&amp;quot;brg_logo.png&amp;quot;&lt;/b&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h4&gt;Good Practice&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;img id=&amp;quot;logo&amp;quot; src=&amp;quot;images/bgr_logo.png&amp;quot;
 &lt;b&gt;alt=&amp;quot;Six Revisions Logo&amp;quot;&lt;/b&gt; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;15.Use Title Attributes with Links (When Needed)&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Using a &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;title&lt;/span&gt;&lt;/code&gt; attribute
in your anchor elements will improve accessibility when used the right way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;It is important to understand that the &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;title&lt;/span&gt;&lt;/code&gt;
attribute should be used to increase the meaning of the anchor tag.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Bad Practice&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&lt;b&gt;&amp;lt;!-- Redundant title attribute --&amp;gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;a href=&amp;quot;&lt;a
href=&quot;http://blog.com/all-articles&quot; target=&quot;_blank&quot;&gt;http://blog.com/all-articles&lt;/a&gt;&amp;quot; 
&lt;b&gt;title=&amp;quot;Click Here
&amp;quot;&lt;/b&gt;&amp;gt;Click here.&amp;lt;/a&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;When a screen reader reads the anchor tag, the listener has to listen to the
same text twice. What’s worse is that it doesn’t explain what the page being
linked to is.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;If you are just repeating the anchor’s text or aren’t intending to describe
the page being linked, it’s better not to use a &lt;code&gt;&lt;span style=&#39;font-size:
10.0pt&#39;&gt;title&lt;/span&gt;&lt;/code&gt; at all. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Good Practice&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;a href=&amp;quot;&lt;a href=&quot;http://blog.com/all-articles&quot; target=&quot;_blank&quot;&gt;http://blog.com/all-articles&lt;/a&gt;&amp;quot; 
&lt;b&gt;title=&amp;quot;A list of all articles.&amp;quot;&lt;/b&gt;
&amp;gt;Click here.&amp;lt;/a&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;16. Use Fieldset and Labels in Web Forms&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Use the &lt;code&gt;&lt;span style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;label&amp;gt;&lt;/span&gt;&lt;/code&gt; element
to label input fields. Divide input fields into logical sets using &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;fieldset&amp;gt;&lt;/span&gt;&lt;/code&gt;. Name a &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;fieldset&amp;gt;&lt;/span&gt;&lt;/code&gt; using &lt;code&gt;&lt;span
style=&#39;font-size:10.0pt&#39;&gt;&amp;lt;legend&amp;gt;&lt;/span&gt;&lt;/code&gt;. All of this will make
your forms more understandable for users and improve the quality of your code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;fieldset&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;legend&amp;gt;Personal Details&amp;lt;/legend&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt; &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;name&amp;lt;/label&amp;gt;
&amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;name&amp;quot; name=&amp;quot;name&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;email&amp;lt;/label&amp;gt;
&amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;email&amp;quot; name=&amp;quot;email&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;label for=&amp;quot;subject&amp;quot;&amp;gt;subject&amp;lt;/label&amp;gt;
&amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;subject&amp;quot; name=&amp;quot;subject&amp;quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt; &amp;lt;label for=&amp;quot;message&amp;quot; &amp;gt;message&amp;lt;/label&amp;gt;
&amp;lt;textarea rows=&amp;quot;10&amp;quot; cols=&amp;quot;20&amp;quot; id=&amp;quot;message&amp;quot; name=&amp;quot;message&amp;quot; &amp;gt;
&amp;lt;/textarea&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/fieldset&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h3&gt;17.Use Modular IE Fixes&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;You can use conditional comments to target Internet Explorer if you are
having issues with your web pages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h4&gt;IE 7 Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;!--[if IE 7]&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;css/ie-7.css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;![endif]--&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;h4&gt;IE 6 Example&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;

&lt;pre&gt;&amp;lt;!--[if IE 6]&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;css/ie-6.css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; 
src=&amp;quot;js/DD_belatedPNG_0.0.8a-min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;DD_belatedPNG.fix(&#39;#logo&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt; &amp;lt;/script&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;![endif]--&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;

&lt;p&gt;However, try to make your fixes modular to future-proof your work such that when
older versions of IE don’t need to be supported anymore, you just have to
update your site in one place (i.e. take out the reference to the ie-6.css
stylesheet).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;By the way, for pixing PNG transparencies in IE6, I recommend the &lt;a
href=&quot;http://www.dillerdesign.com/experiment/DD_belatedPNG/&quot; target=&quot;_blank&quot;&gt;DD_belated
PNG script&lt;/a&gt; (the JavaScript method referenced above).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;18.Validate Your Code&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;Validation should not be the end-all evaluation of good work versus bad
work. Just because your work validates &lt;a
href=&quot;http://sixrevisions.com/web-standards/problems-with-using-website-validation-services/&quot;
target=&quot;_blank&quot;
title=&quot;Problems with Using Website Validation Services - sixrevisions.com&quot;&gt;doesn’t
automatically mean it’s good code&lt;/a&gt;; and conversely, a work that doesn’t
fully validate doesn’t mean it’s bad (if you don’t believe me, try
auto-validating Google or Yahoo!). &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;But auto-validation services such as the free W3C &lt;a
href=&quot;http://validator.w3.org/&quot; target=&quot;_blank&quot;&gt;markup validation&lt;/a&gt; service
can be a useful debugger that helps you identify rendering errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;While writing HTML, make a habit to validate frequently; this will save you
from issues that are harder to pinpoint (or redo) once your work is completed
and lengthier. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;19. Write Consistently Formatted Code&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;A cleanly written and well-indented code base shows your professionalism, as
well as your consideration for the other people that might need to work on your
code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Write properly indented clean markup from the start; it will increase your
work’s readability.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;h3&gt;20. Avoid Excessive Comments&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;

&lt;p&gt;While documenting your code, the purpose is to make it easier to understand,
so commenting your code logic is a good thing for programming languages like
PHP, Java and C#.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;But markup is very much self-explanatory and commenting every line of code
does not make sense in HTML/XHTML. If you find yourself commenting your HTML a
lot to explain what is going on, you should review your work for semantics and &lt;a
href=&quot;http://sixrevisions.com/css/css-tips/css-tip-2-structural-naming-convention-in-css/&quot;
target=&quot;_blank&quot; title=&quot;Structural Naming Convention in CSS - sixrevisions.com&quot;&gt;appropriate
naming conventions&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/8968170589017600552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/20-html-best-practices-you-should.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/8968170589017600552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/8968170589017600552'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/20-html-best-practices-you-should.html' title='20 HTML Best Practices You Should Follow'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-176115781147079009</id><published>2010-10-28T02:41:00.001-07:00</published><updated>2011-03-23T04:38:27.383-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><title type='text'>SEO doctor addon</title><content type='html'>https://addons.mozilla.org/en-US/firefox/downloads/latest/102178/addon-102178-latest.xpi?src=addondetail</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/176115781147079009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/seo-doctor-addon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/176115781147079009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/176115781147079009'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/seo-doctor-addon.html' title='SEO doctor addon'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-5362589220315765039</id><published>2010-10-28T02:38:00.001-07:00</published><updated>2011-03-23T04:40:04.618-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Code optimizing</title><content type='html'>&lt;DIV class=ExternalClassCC53BDA623024E5892F179AE0CCCF749&gt;&lt;DIV&gt;&lt;UL type=disc&gt;&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;If a method can be static, declare it static. Speed improvement is by a factor of 4.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;echo is faster than print.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Use echo&#39;s multiple parameters instead of string concatenation.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Set the maxvalue for your for-loops before and not in the loop.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Unset your variables to free memory, especially large arrays.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Avoid magic like __get, __set, __autoload&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;require_once() is expensive&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Use full paths in includes and requires, less time spent on resolving the OS paths.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;If you need to find out the time when the script started executing, $_SERVER[’REQUEST_TIME’] is preferred to time()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;See if you can use strncasecmp, strpbrk and stripos instead of regex&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;str_replace is faster than preg_replace, but strtr is faster than str_replace by a factor of 4&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;If the function, such as string replacement function, accepts both arrays and single characters as arguments, and if your argument list is not too long, consider writing a few redundant replacement statements, passing one character at a time, instead of one line of code that accepts arrays as search and replace arguments.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;It&#39;s better to use switch statements than multi if, else if, statements.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Error suppression with @ is very slow.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Turn on apache&#39;s mod_deflate&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Close your database connections when you&#39;re done with them&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;$row[’id’] is 7 times faster than $row[id]&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Error messages are expensive&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Do not use functions inside of for loop, such as for ($x=0; $x &amp;lt; count($array); $x) The count() function gets called each time.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Incrementing a local variable in a method is the fastest. Nearly the same as calling a local variable in a function.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Incrementing a global variable is 2 times slow than a local var.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Incrementing an object property (eg. $this-&amp;gt;prop++) is 3 times slower than a local variable.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Incrementing an undefined local variable is 9-10 times slower than a pre-initialized one.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Just declaring a global variable without using it in a function also slows things down (by about the same amount as incrementing a local var). PHP probably does a check to see if the global exists.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Method invocation appears to be independent of the number of methods defined in the class because I added 10 more methods to the test class (before and after the test method) with no change in performance.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Methods in derived classes run faster than ones defined in the base class.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;A function call with one parameter and an empty function body takes about the same time as doing 7-8 $localvar++ operations. A similar method call is of course about 15 $localvar++ operations.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Surrounding your string by &#39; instead of &quot; will make things interpret a little faster since php looks for variables inside &quot;...&quot; but not inside &#39;...&#39;. Of course you can only do this when you don&#39;t need to have variables in the string.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;When echoing strings it&#39;s faster to separate them by comma instead of dot. Note: This only works with echo, which is a function that can take several strings as arguments.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;A PHP script will be served at least 2-10 times slower than a static HTML page by Apache. Try to use more static HTML pages and fewer scripts.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Your PHP scripts are recompiled every time unless the scripts are cached. Install a PHP caching product to typically increase performance by 25-100% by removing compile times.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Cache as much as possible. Use memcached - memcached is a high-performance memory object caching system intended to speed up dynamic web applications by alleviating database load. OP code caches are useful so that your script does not have to be compiled on every request&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 12pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;When working with strings and you need to check that the string is either of a certain length you&#39;d understandably would want to use the strlen() function. This function is pretty quick since it&#39;s operation does not perform any calculation but merely return the already known length of a string available in the zval structure (internal C struct used to store variables in PHP). However because strlen() is a function it is still somewhat slow because the function call requires several operations such as lowercase &amp;amp; hashtable lookup followed by the execution of said function. In some instance you can improve the speed of your code by using an isset() trick.&lt;BR&gt;&lt;BR&gt;Ex.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt 51pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;PHP Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 15pt 14pt 51pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Courier New&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;if&amp;nbsp;(strlen($foo)&amp;nbsp;&amp;lt;&amp;nbsp;5)&amp;nbsp;{&amp;nbsp;echo&amp;nbsp;&quot;Foo&amp;nbsp;is&amp;nbsp;too&amp;nbsp;short&quot;;&amp;nbsp;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 12pt 0.5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;vs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt 51pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;PHP Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 15pt 14pt 51pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Courier New&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;if&amp;nbsp;(!isset($foo{5}))&amp;nbsp;{&amp;nbsp;echo&amp;nbsp;&quot;Foo&amp;nbsp;is&amp;nbsp;too&amp;nbsp;short&quot;;&amp;nbsp;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 12pt 0.5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;Calling isset() happens to be faster then strlen() because unlike strlen(), isset() is a language construct and not a function meaning that it&#39;s execution does not require function lookups and lowercase. This means you have virtually no overhead on top of the actual code that determines the string&#39;s length.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL type=disc&gt;&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;When incrementing or decrementing the value of the variable $i++ happens to be a tad slower then ++$i. This is something PHP specific and does not apply to other languages, so don&#39;t go modifying your C or Java code thinking it&#39;ll suddenly become faster, it won&#39;t. ++$i happens to be faster in PHP because instead of 4 opcodes used for $i++ you only need 3. Post incrementation actually causes in the creation of a temporary var that is then incremented. While pre-incrementation increases the original value directly. This is one of the optimization that opcode optimized like Zend&#39;s PHP optimizer. It is a still a good idea to keep in mind since not all opcode optimizers perform this optimization and there are plenty of ISPs and servers running without an opcode optimizer.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Not everything has to be OOP, often it is too much overhead, each method and object call consumes a lot of memory.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Do not implement every data structure as a class, arrays are useful, too&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Don&#39;t split methods too much, think, which code you will really re-use&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;You can always split the code of a method later, when needed&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Make use of the countless predefined functions&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;If you have very time consuming functions in your code, consider writing them as C extensions&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;Profile your code. A profiler shows you, which parts of your code consumes how many time. The Xdebug debugger already contains a profiler. Profiling shows you the bottlenecks in overview&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style=&quot;MARGIN: 0in 0in 0pt; COLOR: #17365d; tab-stops: list .5in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 14pt&quot;&gt;mod_gzip which is available as an Apache module compresses your data on the fly and can reduce the data to transfer up to 80%&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt 0.25in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;Please refer the below link as well and also make use of benchmarking class in codeigniter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt 0.25in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;&lt;A href=&quot;http://www.phpbench.com/&quot;&gt;http://www.phpbench.com/&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt 0.25in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;&lt;A href=&quot;http://www.webdesign.org/web-programming/php/benchmark-and-optimize-php-script-speed.14875.html&quot;&gt;http://www.webdesign.org/web-programming/php/benchmark-and-optimize-php-script-speed.14875.html&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style=&quot;MARGIN: 0in 0in 0pt 0.25in&quot; class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; COLOR: #17365d; FONT-SIZE: 14pt&quot;&gt;&lt;A href=&quot;http://www.go4expert.com/forums/showthread.php?t=13769&quot;&gt;http://www.go4expert.com/forums/showthread.php?t=13769&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/5362589220315765039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/code-optimizing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/5362589220315765039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/5362589220315765039'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/code-optimizing.html' title='Code optimizing'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-2868510893322241570</id><published>2010-10-28T02:35:00.000-07:00</published><updated>2011-03-23T04:40:30.194-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySql"/><title type='text'>MySql caching - Turn on MySQL query cache to speed up query performance</title><content type='html'>&lt;DIV class=ExternalClass8659EBD242164693BE8AB8AD74190EAB&gt;&lt;DIV&gt;&lt;P&gt;Many &lt;SPAN id=IL_AD8 class=IL_AD&gt;times&lt;/SPAN&gt; developers looking for ways to speed up query, in &lt;SPAN id=IL_AD3 class=IL_AD&gt;mysql&lt;/SPAN&gt; we can enable query cache to speed up query performance. Whenever query cache is enable, it will cache the query in memory and boost query performance.&lt;/P&gt;&lt;P&gt;As we know, speed is always the most important element in developing a website especially for those high traffic database driven website. You can try to turn on query cache to speed up query. &lt;/P&gt;&lt;P&gt;To speed up query, enable the MySQL query cache, before that you need to set few variables in mysql configuration file (usually is &lt;STRONG&gt;my.cnf&lt;/STRONG&gt; or &lt;STRONG&gt;my.ini&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN id=more-45&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- 1st, set &lt;STRONG&gt;query_cache_type&lt;/STRONG&gt; to 1. (There are 3 possible settings: 0 (disable / off), 1 (enable / on) and 2 (on demand).&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;query-cache-type = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;- 2nd, set query_cache_size to your expected size. I’d prefer to set it at 20MB. &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;query-cache-size = 20M&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you set your query-cache-type = 2 ( on demand ), you would wan to modify your sql query to support cache.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;SELECT SQL_CACHE field1, field2 FROM table1 WHERE field3 = ‘yes’&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To check if your &lt;SPAN id=IL_AD1 class=IL_AD&gt;mysql server&lt;/SPAN&gt; already enable query cache, simply run this query:-&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;SHOW VARIABLES LIKE ‘%query_cache%’;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You will see this result:-&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;+——————-+———+&lt;BR&gt;| Variable_name | Value |&lt;BR&gt;+——————-+———+&lt;BR&gt;| have_query_cache | YES |&lt;BR&gt;| query_cache_limit | 1048576 |&lt;BR&gt;| query_cache_size | 20971520 |&lt;BR&gt;| query_cache_type | ON |&lt;BR&gt;+——————-+———+&lt;BR&gt;4 rows in set (0.06 sec) &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To check if your MySQL query cache is working, simply perform a sql query for 2 times and check the query cache variable like below:-&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;SHOW STATUS LIKE ‘%qcache%’;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;+————————-+———-+&lt;BR&gt;| Variable_name | Value |&lt;BR&gt;+————————-+———-+&lt;BR&gt;| Qcache_queries_in_cache | 1 |&lt;BR&gt;| Qcache_inserts | 3 |&lt;BR&gt;| Qcache_hits | 0 |&lt;BR&gt;| Qcache_lowmem_prunes | 0 |&lt;BR&gt;| Qcache_not_cached | 2 |&lt;BR&gt;| Qcache_free_memory | 20947592 |&lt;BR&gt;| Qcache_free_blocks | 1 |&lt;BR&gt;| Qcache_total_blocks | 4 |&lt;BR&gt;+————————-+———-+ &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For the first time you execute your SQL query, the time it should take take be longer compare to the second time query. This is due to the MySQL query cache is working!&lt;/P&gt;&lt;P&gt;&lt;A href=&quot;http://dev.mysql.com/tech-resources/articles/mysql-query-cache.html&quot;&gt;To know more about MySQL query cache click here&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/2868510893322241570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/mysql-caching-turn-on-mysql-query-cache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/2868510893322241570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/2868510893322241570'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/mysql-caching-turn-on-mysql-query-cache.html' title='MySql caching - Turn on MySQL query cache to speed up query performance'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-1201915568277851150</id><published>2010-10-28T02:33:00.000-07:00</published><updated>2011-03-23T04:38:27.383-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><title type='text'>SEO - Meta tags</title><content type='html'>&lt;div class=ExternalClass9CBBED155ED94D4AAD275CEE1EEEB467&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td class=plainText vAlign=top width=468 align=left&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt;Content referred from &lt;a href=&quot;http://www.webmarketingnow.com/tips/meta-tags-uncovered.html&quot;&gt;www.webmarketingnow.com&lt;/A&gt;&lt;strong&gt;&lt;/P&gt;&lt;p&gt;Over the years, Meta tags have become quite misunderstood and are often used incorrectly on the Internet. This document will provide a brief explanation and breakdown of the most widely used Meta tags, as well as recommendations regarding the ones you should or shouldn&#39;t use for your website. Done correctly, Meta tags can be a valuable onsite optimization tool and can have a positive effect of conversion rates. &lt;/P&gt;&lt;p&gt;What are Meta tags? We are asked this question all the time. Meta tags are snippets of informational code that have been located between your &lt;strong&gt;&lt;font color=#0000cc&gt;&amp;lt;HEAD&amp;gt; &amp;lt;/HEAD&amp;gt; &lt;/FONT&gt;&lt;/STRONG&gt;tags that are a part of the HTML document you&#39;ve generated. &lt;/P&gt;&lt;p&gt;There are two known styles/attributes that you&#39;ll see for Meta tags. These are:&lt;/P&gt;1. &amp;lt;META HTTP-EQUIV=&quot;name&quot; CONTENT=&quot;content&quot;&amp;gt; &lt;br /&gt;
2. &amp;lt;META NAME=&quot;name&quot; CONTENT=&quot;content&quot;&amp;gt; &lt;br /&gt;
&lt;p&gt;In the mid 90s, Meta tags were developed to assist with the rapid growth of web pages. In the late 90’s there was a major occurrence. Many Webmasters, generally those who ran adult-orientated websites, began to abuse the use of Keyword Meta tags. Many unrelated keywords were placed on their sites in the Meta tag section, causing their pornographic sites to begin appearing in search results unrelated to topics such as &quot;Smithsonian&quot;.&lt;/P&gt;&lt;p&gt;Eventually the major search engines began discontinuing the use of Meta tags as major criteria for listing sites. Google had always ignored the use of Meta tags, and currently will only index &lt;a href=&quot;#google&quot;&gt;Google Meta Tags&lt;/A&gt;. There are several searches that do read Meta tags in their own way.&lt;/P&gt;&lt;p&gt;&lt;span class=content01&gt;&lt;/SPAN&gt;The following list of links will take you to information about the most important individual Meta tags:&lt;/P&gt;&lt;p&gt;&lt;font color=#333333&gt;&lt;strong&gt;Recommended Tags&lt;/STRONG&gt;&lt;/FONT&gt;&lt;br /&gt;
&lt;a href=&quot;#content-language&quot;&gt;Meta Content Language&lt;/A&gt; (non-US English ONLY)&lt;a href=&quot;#content-language&quot;&gt; &lt;br /&gt;
&lt;/A&gt;&lt;a href=&quot;#content-type&quot;&gt;Meta Content Type&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#description&quot;&gt;Meta Description&lt;/A&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span&gt;&lt;a href=&quot;#language&quot;&gt;Meta Language&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt; (non-US English ONLY)&lt;/P&gt;&lt;p&gt;&lt;strong&gt;Optional Tags&lt;/STRONG&gt;&lt;br /&gt;
&lt;a href=&quot;#abstract&quot;&gt;Meta Abstract&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#author&quot;&gt;Meta Author&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#copyright&quot;&gt;Meta Copyright&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#description&quot;&gt;&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#designer&quot;&gt;Meta Designer&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#google&quot;&gt;Meta Google&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#keywords&quot;&gt;Meta Keywords&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#msn&quot;&gt;Meta MSN (No ODP)&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#title&quot;&gt;Meta Title&lt;/A&gt;&lt;/P&gt;&lt;p&gt;&lt;strong&gt;&lt;font color=#333333&gt;Not Recommended Tags&lt;/FONT&gt;&lt;/STRONG&gt;&lt;br /&gt;
&lt;a href=&quot;#content-script&quot;&gt;Meta Content Script Type&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#content-style&quot;&gt;Meta Content Style Type&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#content-type&quot;&gt;&lt;/A&gt;&lt;a href=&quot;#distribution&quot;&gt;Meta Distribution&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#expires&quot;&gt;Meta Expires&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#generator&quot;&gt;Meta Generator&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#smart-tags&quot;&gt;Meta MS Smart Tags&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#pragma-no-cache&quot;&gt;Meta Pragma No-Cache&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#msn&quot;&gt;&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#publisher&quot;&gt;Meta Publisher&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#rating&quot;&gt;Meta Rating&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#refresh&quot;&gt;Meta Refresh&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#reply-to&quot;&gt;Meta Reply-To&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#resource-type&quot;&gt;Meta Resource Type&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#revisit-after&quot;&gt;Meta Revisit After&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#robots&quot;&gt;Meta Robots&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#set-cookie&quot;&gt;Meta Set Cookie&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#subject&quot;&gt;Meta Subject&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#title&quot;&gt;&lt;/A&gt;&lt;br /&gt;
&lt;a href=&quot;#object-type&quot;&gt;Meta VW96.ObjectType&lt;/A&gt;&lt;/P&gt;&lt;p&gt;Now that you&#39;ve seen the list of recommended, optional, and not recommended tags, here is a little more information on each of these. If you&#39;d like to quickly jump to a specific Meta tag, select the link from above.&lt;/P&gt;&lt;p&gt;&lt;strong&gt;&lt;a id=abstract name=abstract&gt;&lt;/A&gt;Meta Abstract&lt;/STRONG&gt;&lt;/P&gt;&lt;p&gt;Gives a short summary of the description. The Meta Abstract is used primarily with academic papers. The content for this tag is usually 10 words or less.&lt;/P&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Abstract:&lt;/FONT&gt;&lt;/U&gt; &lt;br /&gt;
&lt;p&gt;&amp;lt;META NAME=&quot;Abstract&quot; CONTENT=&quot;Short description of page&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;font color=#333333&gt;Recommendation on Meta Abstract:&lt;/FONT&gt;&lt;/U&gt; This is an optional Meta tag. It will not assist you with the major search engines. If you have content that is highly specialized, the use of the Meta Abstract tag will allow search engines that are apart of your field of expertise to index your website correctly. Currently the Meta Abstract tag is not a part of Google, Yahoo!, or Bing algorithms.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=author name=author&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Author&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Author tag will display the author of the document. This Meta tag will reference the name of the person who developed the HTML/XML document being viewed. If you use the Meta Author tag, it is recommended to use it with the author&#39;s first and last name. It is not recommended to have the inclusion of the author&#39;s email address due to the proliferation of Spam. If the author would like to be contacted, it is advised to include a contact form on a HTML page instead. &lt;/P&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Author tag:&lt;/FONT&gt;&lt;/U&gt; &lt;br /&gt;
&lt;p&gt;&amp;lt;META NAME=&quot;Author&quot; CONTENT=&quot;George Costanza, gcostanza@vandalayindustries.com&quot;&amp;gt;&lt;br /&gt;
&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendation of Meta Author tag:&lt;/FONT&gt;&lt;/U&gt;The use of the Meta Author tag is optional. If you have several individuals contributing to the content of your site, include this tag for assistance in tracking the author. The Meta Author tag is not indexed by Google, Yahoo!, or Bing. While it will not assist you in search engine rankings, it is recognized as part of the &quot;Meta Tag Standard.&quot;&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=content-language name=content-language&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Content Language&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Content Language tag declares the natural language of the document. This is also known as the Meta Name Language. Robots use this tag to categorize the language of the web page.&lt;/P&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Content Language tag:&lt;/FONT&gt;&lt;/U&gt; &lt;br /&gt;
&lt;p&gt;&amp;lt;META HTTP-EQUIV=&quot;Content-Language&quot; CONTENT=&quot;en-GB&quot;&amp;gt;&lt;br /&gt;
&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Content Language tag:&lt;/FONT&gt;&lt;/U&gt; It is advised only to use the Meta Content Language tag if your website is written in non-US English. To date we have not tested this tag, but we have had reports from our members that it does assist non-US English sites in getting categorized properly by the search engines. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=content-script name=content-script&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Content Script Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Content Script Type tag is used to specify the default scripting language of the document.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Content Script Type: &lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META HTTP-EQUIV=&quot;Content-Script-Type&quot; CONTENT=&quot;text/javascript&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for Meta Content Script Type:&lt;/FONT&gt;&lt;/U&gt; It is advised not to use the Meta Content Script Type tag. Search engines do not need this tag to detect scripts as they do this on their own. Browsers do not use this tag either, as they have other detection methods in place. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=content-style name=content-style&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Content Style Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Content Style Type is used to specify the default Cascading Style Sheet (CSS) language for the documents. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Content Style Type tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META HTTP-EQUIV=&quot;Content-Style-Type&quot; CONTENT=&quot;text/css&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for Meta Content Style Type tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Content Style Type tag. Search engines do not need to know the style sheet of a document. Web browsers also do not look to the Meta tags for style sheet information. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=content-type name=content-type&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Content Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;Used to declare the character set. &lt;br /&gt;
&lt;p&gt;The Meta Content Type tag is used to declare the character set of a website. It has become recommended to always use the Meta Content Type tag even if you use a DTD declaration above the Header. If you fail to do so, it may cause display problems. For instance, the document may use UTF-8 punctuation characters but is displayed in ISO or ASCII character sets. There are other benefits to using the Meta Content Type tag. Simply subscribe to our &lt;a href=&quot;http://www.seorevolution.com/&quot;&gt;SEO Revolution Newsletter&lt;/A&gt; (nominal fee membership) to get the entire scoop of what the Meta Content Type tag can do for your site &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Content Type tag: &lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;meta&lt;span class=attribute-name&gt; http-equiv&lt;/SPAN&gt;=&quot;Content-Type&quot; &lt;span class=attribute-name&gt;content&lt;/SPAN&gt;=&quot;text/html; charset=iso-8859-1&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations of a Meta Content Type tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended to always use the Meta Content Type tag along with the DTD declaration format by the &lt;a href=&quot;http://www.w3.org/&quot; rel=nofollow target=_blank&gt;World Wide Web Consortium&lt;/A&gt;. If you fail to do so, you may cause display problems. For example, the Meta Content Type tag helps properly display the page if the document uses UTF-8 punctuation characters, but is displayed in ISO or ASCII character sets. There are many benefits to using the Meta Content Type tag. To get the entire scoop on the Meta Content Type tags, become a paid member and subscribe to our &lt;a href=&quot;http://www.seorevolution.com/&quot;&gt;SEO Revolution Newsletter&lt;/A&gt;.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=copyright name=copyright&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Copyright&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Copyright tag is used to include a copyright, trademark, patent, or other information that pertains to intellectual property.&lt;/P&gt;&lt;p&gt;&lt;span class=content01&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Copyright tag:&lt;/FONT&gt;&lt;/U&gt; &lt;br /&gt;
&lt;p&gt;&amp;lt;meta name=&quot;copyright&quot; content=&quot;Copyright 2008&quot;&amp;gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;br /&gt;
&lt;p&gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for a Meta Copyright tag:&lt;/FONT&gt;&lt;/U&gt; It is not required to use a Meta Copyright tag. Please be aware that the Meta Copyright tag will not protect your site&#39;s content or your intellectual property. Consult your attorney to ensure you are protected properly. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=description name=description&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Description&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Description tag gives a brief overview of the document. The Meta Description tag is a short, plain language description of the document, usually consisting of 20-25 words or less. Search engines that support the Meta Description tag will use the information to publish on their search results page, normally displaying below the Title of your site listing.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Description tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;description&quot; CONTENT=&quot;Citrus fruit wholesaler.&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations of the Meta Description tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended to always use the Meta Description tag. Make your Meta Description as compelling as you can, as that description is often the motivating factor involved with getting your listings clicked in the search results. The Meta Description tag is particularly important if your document has very little text, is a frameset, or has extensive scripts at the top.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=designer name=designer&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Designer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Designer tag is used to declare the designer of the website.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Designer tag:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Designer&quot; CONTENT=&quot;Art Vandaley&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations of the Meta Designer tag:&lt;/FONT&gt;&lt;/U&gt; The Meta Designer tag is optional to use. Usually web designers who want advertising or to catch people hijacking their designs use the Meta Designer tag. It should be understood that search engines do not support the Meta Designer tag.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=distribution name=distribution&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Distribution&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Distribution tag is used to declare the distribution of your web content. The three classifications of distribution are:&lt;/P&gt;&lt;ul&gt;&lt;li&gt;Global (the entire web)&lt;/LI&gt;
&lt;li&gt;Local (reserved for the local IP block of your site)&lt;/LI&gt;
&lt;li&gt;IU (Internal Use, not for public distribution).&lt;/LI&gt;&lt;/UL&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Distribution tag: &lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Distribution&quot; CONTENT=&quot;Global&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Distribution tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Distribution tag. If you want to have restricted distribution, use the robots.txt tag or your HTAccess file.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=expires name=expires&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Expires&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Expires tag is used to declare the date and time after which the web document should be considered expired.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Expires tag:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META HTTP-EQUIV=&quot;expires&quot; CONTENT=&quot;Wed, 26 Feb 2004 08:21:57 GMT&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Expires tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Expires tag. While the Meta Expires tag is good conceptually, it is impractical for search engines. Not only do search engines not read the Meta Expires tag, but according to my testing, browsers ignore it too. Are you looking to stop Google from caching your site? Even if you use the Meta Expires tag Google will cache your page. The Meta Expires tag is worthless; don&#39;t bother with it.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=generator name=generator&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Generator&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Generator tag is used to declare the name and version number of the publishing tool used to create the page. Tool vendors use the Meta Generator tag to assess market penetration.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Generator tag: &lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Generator&quot; CONTENT=&quot;FrontPage 4.0&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for Meta Generator tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Generator tag. If you have Meta Generator tags, delete them if possible. Meta Generator tags serve no useful purpose for your pages.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=google name=google&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Google&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Google tag has several options that are exclusive for use with Google. These include:&lt;/P&gt;&lt;ol&gt;&lt;li&gt;&lt;u&gt;Googlebot:&lt;/U&gt; noarchive - does not allow Google to display cached content &lt;/LI&gt;
&lt;li&gt;&lt;u&gt;Googlebot:&lt;/U&gt; nosnippet - does not allow Google to display excerpted or cached content &lt;/LI&gt;
&lt;li&gt;&lt;u&gt;Googlebot:&lt;/U&gt; noindex - similar to the robots meta element &lt;/LI&gt;
&lt;li&gt;&lt;u&gt;Googlebot:&lt;/U&gt; nofollow - does not allow Google to pass any PageRank or link popularity to the link served. &lt;/LI&gt;&lt;/OL&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Google tags:&lt;/FONT&gt;&lt;/U&gt; The Meta Google tags are optional to use. You generally do not need to use Meta Google tags unless you want Google to do something specific with your site. The Meta Google tag is one of the few Meta tags Google will read, index, and obey.&lt;/P&gt;&lt;p&gt;For more info straight from Google, see Google&#39;s &lt;a href=&quot;http://www.google.com/webmasters/remove.html&quot; target=_blank&gt;Remove Page&lt;/A&gt;.&lt;/P&gt;&lt;p&gt;Also referenced: meta tags google &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=language name=language&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Language&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Language tag is used to declare the language used on the website. Webmasters who wish to declare the primary language of the web page can use the Meta Language tag.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Language tag:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Language&quot; CONTENT=&quot;english&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendation of the Meta Language tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended to only use the Meta Language tag for sites in non-US English languages. No testing has been done in other languages to verify that the Meta Language tag does indeed work.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=keywords name=keywords&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Keywords&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta Keywords tag is used to list keywords that define the content of your site. In addition to words from the title, document body, and other areas search engines use keywords to properly index your site. The Meta Keywords tag is typically used for synonyms and alternates of title words.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Keywords tag:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;keywords&quot; CONTENT=&quot;oranges, lemons, limes&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Keywords tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended to use the Meta Keywords tag with caution. Make sure to only use keywords that are relevant to your site. Search engines are known to penalize or blacklist your site for abuse. The Meta Keywords tag also exposes your keywords to your competitors. Five hours of keyword research can be wasted if your competitor can hijack your work within just a few minutes.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=smart-tags name=smart-tags&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta MS Smart Tags&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;p&gt;The Meta MS Smart tags were part of a beta test of Internet Explorer and were removed due to negative press and feedback from users. In short, Microsoft would sell keyword phrases, then the Meta MS Smart Tags would allow those keywords to be highlighted on web pages that would take the user to the advertiser&#39;s site. This would mean your site could promote your competitor&#39;s site without your consent.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta MS Smart tags:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;MSSmartTagsPreventParsing&quot; CONTENT=&quot;TRUE&quot;&amp;gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for Meta MS Smart tags:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta MS Smart tags. Microsoft discontinued Meta MS Smart tags technology. If you are working with an SEO firm that demands to insert these tags, quickly find a new SEO company. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=msn name=msn&gt;&lt;/A&gt;&lt;strong&gt;Meta MSN (No ODP)&lt;/STRONG&gt; &lt;/P&gt;&lt;p&gt;The Meta MSN (No ODP) tag is used for your description in the Bing search results instead of the description used in DMOZ. &lt;/P&gt;&lt;p&gt;&lt;u&gt;Example of a Meta MSN (No ODP) tag:&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META Name=&quot;msnbot&quot; CONTENT=&quot;NOODP&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;Recommendation for Meta MSN (No ODP) tag&lt;/U&gt;: It is optional to use Meta MSN (No ODP) tag. If you are unhappy with the description from DMOZ, and most Webmasters are, use the Meta MSN (No ODP) tag. While this is only good for BingBot, you can sub &quot;Robots&quot; for &quot;BingBOT&quot; in the Meta MSN (No ODP) tag to be valid for all bots. As of right now, however, Bing is the only search engine using descriptions straight from DMOZ.&lt;/P&gt;&lt;p&gt;&lt;u&gt;Note:&lt;/U&gt; Using the Meta MSN (No ODP) tag will not remove the DMOZ listing immediately. It can take up to four weeks.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=pragma-no-cache name=pragma-no-cache&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Pragma No Cache&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Pragma No Cache tag is used to prevent visitors from seeing a cached version of a specific page. The Meta Pragma No Cache tag forces the browser to pull information from the server each time the page is viewed. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Pragma No Cache tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Pragma No Cache tag:&lt;/FONT&gt;&lt;/U&gt; The Meta Pragma No Cache tag has no affect on search engines and is mainly implemented with the intent of helping users. For example, if you have a site that changes on a daily basis, the Meta Pragma No Cache tag would ensure that the visitor sees the most recent version of the page.&lt;/P&gt;&lt;p&gt;However, since you are pulling information from the server each time a visitor views the page, the load time will be affected as well as incurring increased server activity.&lt;/P&gt;&lt;p&gt;&lt;a href=&quot;http://code.google.com/webstats/2005-12/metadata.html&quot;&gt;Google&lt;/A&gt; has stated: &quot;The http-equiv values pragma and expires are attempts at bypassing caches without having to set the HTTP headers correctly. These are probably unnecessary uses; any scenario where there is a legitimate reason to limit caching, the author is going to have enough control over the server to send the appropriate headers. In addition, the meta tags can&#39;t be considered reliable (e.g. proxies and transparent caches aren&#39;t going to honor them).&quot;&lt;/P&gt;&lt;p&gt;In my opinion, it is better to set the HTTP headers correctly. To learn how to do this, view our &lt;a href=&quot;http://www.webmarketingnow.net/site.php/arti/read/yslow/&quot;&gt;article&lt;/A&gt; (must be an All Access Member of the &lt;a href=&quot;http://www.seorevolution.com/&quot;&gt;SEO Revolution&lt;/A&gt;). &lt;/P&gt;&lt;p&gt;Note: The above also applies to the &lt;a href=&quot;#expires&quot;&gt;Meta Expires Tag&lt;/A&gt;. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=publisher name=publisher&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Publisher:&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Publisher tag is used to declare the name and version number of the publishing tool used to create the page. The Meta Publisher tag is the same as the &lt;a href=&quot;#generator&quot;&gt;Meta Generator tag&lt;/A&gt;. Tool vendors might use this tag to assess market penetration. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Publisher tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Publisher&quot; CONTENT=&quot;FrontPage 4.0&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Publisher tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Publisher tag. If you have t Meta Publisher tags, delete them if possible. The Meta Publisher tag serves no purpose for your pages. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=rating name=rating&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Rating&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Rating tag is used to display a content rating similar to the movie rating system (i.e. PG-13). &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;span class=style3&gt;Example of the Meta Rating tag:&lt;/SPAN&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;There is not a set form of this tag, nor is there any official statement from the W3C. Some sites recommend using this tag. However, these recommendations have no basis in fact as the governing body of HTML has no reference to it. According to our testing, this tag has no merit.&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for Meta Rating tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Rating tag. The fact that there is not a set form for the Meta Rating tag suggests you would be better off acquiring a rating from the International &lt;a href=&quot;http://www.icra.org/&quot; rel=nofollow target=_blank&gt;International Content Rating Association&lt;/A&gt;.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=refresh name=refresh&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Refresh&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Refresh tag is used to specify a delay in seconds before the browser automatically reloads the document or URL specified. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;span class=style3&gt;Example of the Meta Refresh tag:&lt;/SPAN&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&lt;span class=style3&gt;&amp;lt;META HTTP-EQUIV=&quot;Refresh&quot; CONTENT=&quot;3;URL=http://www.domain.com/page.html&quot;&amp;gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Refresh tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Refresh tag. Search engines can detect the use of the Meta Refresh tag and they consider it to be Spam. The penalty is either ignoring the page or banning your site completely from the index. You should use a 301 or 302 redirect instead. To get more information on how to do redirects properly, subscribe to our paid membership and check out the &lt;a href=&quot;http://www.seorevolution.com/&quot;&gt;SEO Revolution Newsletter&lt;/A&gt; archive. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=reply-to name=reply-to&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Reply To&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Reply To tag is used to harvest email addresses. The Meta Reply To tag is a Spammers tag. The Meta Reply To tag picks up your email address, then hits you fast and hard with offers-a-plenty. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;span class=style3&gt;Example of a Meta Reply To tag:&lt;/SPAN&gt;&lt;/U&gt; &lt;span class=style3&gt;&lt;br /&gt;
&lt;p&gt;&amp;lt;meta name=&quot;reply-to&quot; content=&quot;your.email@address.com&quot; /&amp;gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;br /&gt;
&lt;p&gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;Recommendations for the Meta Reply To tag:&lt;/U&gt; It is highly recommended not to use the Meta Reply To tag as it is used as a Spamming tool. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=resource-type name=resource-type&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Resource Type&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Resource Type tag is used to declare the resource of a page. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of a Meta Resource Type tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META name=&quot;resource-type&quot; content=&quot;document&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Resource Type tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Resource Type tag. Use the &lt;a href=&quot;http://www.w3.org/&quot; rel=nofollow target=_blank&gt;DTD Declaration&lt;/A&gt; instead. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=revisit-after name=revisit-after&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Revisit After&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Revisit After tag is used to inform search engines when to return to index your site. It has been stated that the Meta Revisit After tag will boost your site&#39;s rankings with search engines that credit fresh pages. This information is false and has no basis. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;span class=style3&gt;Example of the Meta Revisit After tag:&lt;/SPAN&gt;&lt;/U&gt; &lt;span class=style3&gt;&lt;br /&gt;
&lt;p&gt;&amp;lt;META NAME=&quot;Revisit-After&quot; CONTENT=&quot;30 days Days&quot;&amp;gt; &lt;/P&gt;&lt;/SPAN&gt;&lt;br /&gt;
&lt;p&gt;&lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Revisit After tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Revisit After tag. Search engines will not obey the Meta Revisit After tag and come back to index your site on their own schedule, not when you inform them. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=robots name=robots&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Robots&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Robots tag controls search engine robots on a per-page basis. It tells Robots they may traverse the page, but not index it. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Robots tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;ROBOTS&quot; CONTENT=&quot;NOINDEX,FOLLOW&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendation for the Meta Robots tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Robots tag as the search engines often ignore it. If you need to control the search engine robots, use a robots.txt file or modify your HTAccess file instead. Many people are concerned that if a bot comes to their site through a subpage and not their homepage, the robots.txt file will not be read. This is not true. The robots.txt is read each time a good boy comes to a new domain. You can verify this through your web logs. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=set-cookie name=set-cookie&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Set Cookie&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Set Cookie tag is a cookie used to set a cookie in the user&#39;s web browser. If you use an expiration date, the cookie is considered permanent and will be saved to disk until it expires. Otherwise it will be considered valid only for the current session and will be erased upon closing the Web browser. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Set Cookie tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META HTTP-EQUIV=&quot;Set-Cookie&quot; CONTENT=&quot;cookievalue=xxx;expires=Wednesday, 21-Oct-98 16:14:21 GMT; path=/&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta Set Cookie tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Set Cookie tag. While the Meta Set Cookie tag was used years ago to set cookies, cookies can now be set and customized very easily. If you need assistance with cookies, our programming staff can assist you for a nominal fee.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=subject name=subject&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Subject&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Subject tag is used to declare the subject of the web site. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Subject tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Subject&quot; CONTENT=&quot;Web Page Subject&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations of Meta Subject tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta Subject tag. No third party agents, including browsers and search engines, support the Meta Subject tag. &lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=title name=title&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta Title&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta Title tag is used to declare the title of the page. The Meta Title tag would normally have the same title as contained in the &amp;lt;TITLE&amp;gt;&amp;lt;/TITLE&amp;gt; tag. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Example of the Meta Title tag:&lt;/FONT&gt;&lt;/U&gt; &lt;/P&gt;&lt;p&gt;&amp;lt;META NAME=&quot;Title&quot; CONTENT=&quot;Page Title Here&quot;&amp;gt; &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendation for the Meta Title tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended to use the Meta Title tag with caution. According to our testing, Yahoo! and Bing index the Meta Title tag, but its effect on the algorithm is unknown due to inconsistent test results.&lt;/P&gt;&lt;p&gt;----------------------------&lt;/P&gt;&lt;p&gt;&lt;a id=object-type name=object-type&gt;&lt;/A&gt;&lt;span&gt;&lt;strong&gt;Meta VW96.ObjectType&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;p&gt;The Meta VW96.ObjectType is used to define the purpose of specific pages. This is based on an early version of the &lt;a href=&quot;http://www.dublincore.org/documents/1998/09/dces/&quot; target=_blank&gt;Dublin Core&lt;/A&gt; report, using a defined schema of document types such as FAQ, HOW TO, etc. &lt;/P&gt;&lt;p&gt;&lt;u&gt;&lt;font color=#333333&gt;Recommendations for the Meta VW96.ObjectType tag:&lt;/FONT&gt;&lt;/U&gt; It is recommended not to use the Meta VW96.ObjectType tag. None of the search engine or major browsers support the Meta VW96.ObjectType tags. &lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;tr&gt;&lt;/TR&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/1201915568277851150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/seo-meta-tags.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1201915568277851150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1201915568277851150'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/seo-meta-tags.html' title='SEO - Meta tags'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-1871314905574236542</id><published>2010-10-28T02:30:00.000-07:00</published><updated>2011-03-23T04:40:04.618-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Speeding up website</title><content type='html'>&lt;div class=ExternalClassB408306301304DD29A160FA40E0E7B5F&gt;&lt;div class=yui-b&gt;&lt;h2 id=page-nav&gt;Best Practices for Speeding Up Your Web Site&lt;/H2&gt;&lt;p&gt;The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 35 best practices divided into 7 categories.&lt;/P&gt;&lt;div id=promo&gt;&lt;style&gt;
.ExternalClassB408306301304DD29A160FA40E0E7B5F #bd #promo .tag-JavaScript
{;}
&lt;/STYLE&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div id=rules-filter&gt;&lt;p class=inlPrompt&gt;Filter by category:&lt;/P&gt;&lt;ul&gt;&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-Content&gt;Content&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-Server&gt;Server&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-Cookie&gt;Cookie&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-CSS&gt;CSS&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-JavaScript&gt;JavaScript&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-Images&gt;Images&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-Mobile&gt;Mobile&lt;/LI&gt;
&lt;li style=&quot;BORDER-BOTTOM-COLOR: white; BORDER-TOP-COLOR: white; BORDER-RIGHT-COLOR: white; BORDER-LEFT-COLOR: white&quot; class=tag-All&gt;All&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;ol id=rules-list&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;h3 id=num_http&gt;Minimize HTTP Requests&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the key to faster pages. &lt;/P&gt;&lt;p&gt;One way to reduce the number of components in the page is to simplify the page&#39;s design. But is there a way to build pages with richer content while also achieving fast response times? Here are some techniques for reducing the number of HTTP requests, while still supporting rich page designs.&lt;/P&gt;&lt;p&gt;&lt;strong&gt;Combined files&lt;/STRONG&gt; are a way to reduce the number of HTTP requests by combining all scripts into a single script, and similarly combining all CSS into a single stylesheet. Combining files is more challenging when the scripts and stylesheets vary from page to page, but making this part of your release process improves response times.&lt;/P&gt;&lt;p&gt;&lt;a href=&quot;http://alistapart.com/articles/sprites&quot;&gt;&lt;strong&gt;CSS Sprites&lt;/STRONG&gt;&lt;/A&gt; are the preferred method for reducing the number of image requests. Combine your background images into a single image and use the CSS &lt;code&gt;background-image&lt;/CODE&gt; and &lt;code&gt;background-position&lt;/CODE&gt; properties to display the desired image segment.&lt;/P&gt;&lt;p&gt;&lt;a href=&quot;http://www.w3.org/TR/html401/struct/objects.html#h-13.6&quot;&gt;&lt;strong&gt;Image maps&lt;/STRONG&gt;&lt;/A&gt; combine multiple images into a single image. The overall size is about the same, but reducing the number of HTTP requests speeds up the page. Image maps only work if the images are contiguous in the page, such as a navigation bar. Defining the coordinates of image maps can be tedious and error prone. Using image maps for navigation is not accessible too, so it&#39;s not recommended.&lt;/P&gt;&lt;p&gt;&lt;strong&gt;Inline images&lt;/STRONG&gt; use the &lt;a href=&quot;http://tools.ietf.org/html/rfc2397&quot;&gt;&lt;code&gt;data:&lt;/CODE&gt; URL scheme&lt;/A&gt; to embed the image data in the actual page. This can increase the size of your HTML document. Combining inline images into your (cached) stylesheets is a way to reduce HTTP requests and avoid increasing the size of your pages. Inline images are not yet supported across all major browsers.&lt;/P&gt;&lt;p&gt;Reducing the number of HTTP requests in your page is the place to start. This is the most important guideline for improving performance for first time visitors. As described in Tenni Theurer&#39;s blog post &lt;a href=&quot;http://yuiblog.com/blog/2007/01/04/performance-research-part-2/&quot;&gt;Browser Cache Usage - Exposed!&lt;/A&gt;, 40-60% of daily visitors to your site come in with an empty cache. Making your page fast for these first time visitors is key to a better user experience.&lt;/P&gt;&lt;h3 id=cdn&gt;Use a Content Delivery Network&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;The user&#39;s proximity to your web server has an impact on response times. Deploying your content across multiple, geographically dispersed servers will make your pages load faster from the user&#39;s perspective. But where should you start?&lt;/P&gt;&lt;p&gt;As a first step to implementing geographically dispersed content, don&#39;t attempt to redesign your web application to work in a distributed architecture. Depending on the application, changing the architecture could include daunting tasks such as synchronizing session state and replicating database transactions across server locations. Attempts to reduce the distance between users and your content could be delayed by, or never pass, this application architecture step. &lt;/P&gt;&lt;p&gt;Remember that 80-90% of the end-user response time is spent downloading all the components in the page: images, stylesheets, scripts, Flash, etc. This is the &lt;em&gt;Performance Golden Rule&lt;/EM&gt;. Rather than starting with the difficult task of redesigning your application architecture, it&#39;s better to first disperse your static content. This not only achieves a bigger reduction in response times, but it&#39;s easier thanks to content delivery networks.&lt;/P&gt;&lt;p&gt;A content delivery network (CDN) is a collection of web servers distributed across multiple locations to deliver content more efficiently to users. The server selected for delivering content to a specific user is typically based on a measure of network proximity. For example, the server with the fewest network hops or the server with the quickest response time is chosen.&lt;/P&gt;&lt;p&gt;Some large Internet companies own their own CDN, but it&#39;s cost-effective to use a CDN service provider, such as &lt;a href=&quot;http://www.akamai.com/&quot;&gt;Akamai Technologies&lt;/A&gt;, &lt;a href=&quot;http://www.edgecast.com/&quot;&gt;EdgeCast&lt;/A&gt;, or &lt;a href=&quot;http://www.level3.com/index.cfm?pageID=36&quot;&gt;level3&lt;/A&gt;. For start-up companies and private web sites, the cost of a CDN service can be prohibitive, but as your target audience grows larger and becomes more global, a CDN is necessary to achieve fast response times. At Yahoo!, properties that moved static content off their application web servers to a CDN (both 3rd party as mentioned above as well as Yahoo’s own &lt;a href=&quot;https://cwiki.apache.org/TS/traffic-server.html&quot;&gt;CDN&lt;/A&gt;) improved end-user response times by 20% or more. Switching to a CDN is a relatively easy code change that will dramatically improve the speed of your web site.&lt;/P&gt;&lt;h3 id=expires&gt;Add an Expires or a Cache-Control Header&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;There are two aspects to this rule:&lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;For static components: implement &quot;Never expire&quot; policy by setting far future &lt;code&gt;Expires&lt;/CODE&gt; header&lt;/LI&gt;
&lt;li class=bullist&gt;For dynamic components: use an appropriate &lt;code&gt;Cache-Control&lt;/CODE&gt; header to help the browser with conditional requests&lt;/LI&gt;&lt;/UL&gt;&lt;br /&gt;
&lt;p&gt;Web page designs are getting richer and richer, which means more scripts, stylesheets, images, and Flash in the page. A first-time visitor to your page may have to make several HTTP requests, but by using the Expires header you make those components cacheable. This avoids unnecessary HTTP requests on subsequent page views. Expires headers are most often used with images, but they should be used on &lt;em&gt;all&lt;/EM&gt; components including scripts, stylesheets, and Flash components.&lt;/P&gt;&lt;p&gt;Browsers (and proxies) use a cache to reduce the number and size of HTTP requests, making web pages load faster. A web server uses the Expires header in the HTTP response to tell the client how long a component can be cached. This is a far future Expires header, telling the browser that this response won&#39;t be stale until April 15, 2010. &lt;/P&gt;&lt;pre&gt;Expires: Thu, 15 Apr 2010 20:00:00 GMT&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;If your server is Apache, use the ExpiresDefault directive to set an expiration date relative to the current date. This example of the ExpiresDefault directive sets the Expires date 10 years out from the time of the request.&lt;/P&gt;&lt;pre&gt;ExpiresDefault &quot;access plus 10 years&quot;&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;Keep in mind, if you use a far future Expires header you have to change the component&#39;s filename whenever the component changes. At Yahoo! we often make this step part of the build process: a version number is embedded in the component&#39;s filename, for example, yahoo_2.0.6.js.&lt;/P&gt;&lt;p&gt;Using a far future Expires header affects page views only after a user has already visited your site. It has no effect on the number of HTTP requests when a user visits your site for the first time and the browser&#39;s cache is empty. Therefore the impact of this performance improvement depends on how often users hit your pages with a primed cache. (A &quot;primed cache&quot; already contains all of the components in the page.) We &lt;a href=&quot;http://yuiblog.com/blog/2007/01/04/performance-research-part-2/&quot;&gt;measured this at Yahoo!&lt;/A&gt; and found the number of page views with a primed cache is 75-85%. By using a far future Expires header, you increase the number of components that are cached by the browser and re-used on subsequent page views without sending a single byte over the user&#39;s Internet connection.&lt;/P&gt;&lt;h3 id=gzip&gt;Gzip Components&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;The time it takes to transfer an HTTP request and response across the network can be significantly reduced by decisions made by front-end engineers. It&#39;s true that the end-user&#39;s bandwidth speed, Internet service provider, proximity to peering exchange points, etc. are beyond the control of the development team. But there are other variables that affect response times. Compression reduces response times by reducing the size of the HTTP response.&lt;/P&gt;&lt;p&gt;Starting with HTTP/1.1, web clients indicate support for compression with the Accept-Encoding header in the HTTP request.&lt;/P&gt;&lt;pre&gt;Accept-Encoding: gzip, deflate&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;If the web server sees this header in the request, it may compress the response using one of the methods listed by the client. The web server notifies the web client of this via the Content-Encoding header in the response.&lt;/P&gt;&lt;pre&gt;Content-Encoding: gzip&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;Gzip is the most popular and effective compression method at this time. It was developed by the GNU project and standardized by &lt;a href=&quot;http://www.ietf.org/rfc/rfc1952.txt&quot;&gt;RFC 1952&lt;/A&gt;. The only other compression format you&#39;re likely to see is deflate, but it&#39;s less effective and less popular. &lt;/P&gt;&lt;p&gt;Gzipping generally reduces the response size by about 70%. Approximately 90% of today&#39;s Internet traffic travels through browsers that claim to support gzip. If you use Apache, the module configuring gzip depends on your version: Apache 1.3 uses &lt;a href=&quot;http://sourceforge.net/projects/mod-gzip/&quot;&gt;mod_gzip&lt;/A&gt; while Apache 2.x uses &lt;a href=&quot;http://httpd.apache.org/docs/2.0/mod/mod_deflate.html&quot;&gt;mod_deflate&lt;/A&gt;. &lt;/P&gt;&lt;p&gt;There are known issues with browsers and proxies that may cause a mismatch in what the browser expects and what it receives with regard to compressed content. Fortunately, these edge cases are dwindling as the use of older browsers drops off. The Apache modules help out by adding appropriate Vary response headers automatically. &lt;/P&gt;&lt;p&gt;Servers choose what to gzip based on file type, but are typically too limited in what they decide to compress. Most web sites gzip their HTML documents. It&#39;s also worthwhile to gzip your scripts and stylesheets, but many web sites miss this opportunity. In fact, it&#39;s worthwhile to compress any text response including XML and JSON. Image and PDF files should not be gzipped because they are already compressed. Trying to gzip them not only wastes CPU but can potentially increase file sizes. &lt;/P&gt;&lt;p&gt;Gzipping as many file types as possible is an easy way to reduce page weight and accelerate the user experience.&lt;/P&gt;&lt;h3 id=css_top&gt;Put Stylesheets at the Top&lt;/H3&gt;&lt;p class=date&gt;tag: css&lt;/P&gt;&lt;p&gt;While researching performance at Yahoo!, we discovered that moving stylesheets to the document HEAD makes pages &lt;em&gt;appear&lt;/EM&gt; to be loading faster. This is because putting stylesheets in the HEAD allows the page to render progressively. &lt;/P&gt;&lt;p&gt;Front-end engineers that care about performance want a page to load progressively; that is, we want the browser to display whatever content it has as soon as possible. This is especially important for pages with a lot of content and for users on slower Internet connections. The importance of giving users visual feedback, such as progress indicators, has been well researched and &lt;a href=&quot;http://www.useit.com/papers/responsetime.html&quot;&gt;documented&lt;/A&gt;. In our case the HTML page is the progress indicator! When the browser loads the page progressively the header, the navigation bar, the logo at the top, etc. all serve as visual feedback for the user who is waiting for the page. This improves the overall user experience.&lt;/P&gt;&lt;p&gt;The problem with putting stylesheets near the bottom of the document is that it prohibits progressive rendering in many browsers, including Internet Explorer. These browsers block rendering to avoid having to redraw elements of the page if their styles change. The user is stuck viewing a blank white page. &lt;/P&gt;&lt;p&gt;The &lt;a href=&quot;http://www.w3.org/TR/html4/struct/links.html#h-12.3&quot;&gt;HTML specification&lt;/A&gt; clearly states that stylesheets are to be included in the HEAD of the page: &quot;Unlike A, [LINK] may only appear in the HEAD section of a document, although it may appear any number of times.&quot; Neither of the alternatives, the blank white screen or flash of unstyled content, are worth the risk. The optimal solution is to follow the HTML specification and load your stylesheets in the document HEAD.&lt;/P&gt;&lt;h3 id=js_bottom&gt;Put Scripts at the Bottom&lt;/H3&gt;&lt;p class=date&gt;tag: javascript&lt;/P&gt;&lt;p&gt;The problem caused by scripts is that they block parallel downloads. The &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1.4&quot;&gt;HTTP/1.1 specification&lt;/A&gt; suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel. While a script is downloading, however, the browser won&#39;t start any other downloads, even on different hostnames. &lt;/P&gt;&lt;p&gt;In some situations it&#39;s not easy to move scripts to the bottom. If, for example, the script uses &lt;code&gt;document.write&lt;/CODE&gt; to insert part of the page&#39;s content, it can&#39;t be moved lower in the page. There might also be scoping issues. In many cases, there are ways to workaround these situations.&lt;/P&gt;&lt;p&gt;An alternative suggestion that often comes up is to use deferred scripts. The &lt;code&gt;DEFER&lt;/CODE&gt; attribute indicates that the script does not contain document.write, and is a clue to browsers that they can continue rendering. Unfortunately, Firefox doesn&#39;t support the &lt;code&gt;DEFER&lt;/CODE&gt; attribute. In Internet Explorer, the script may be deferred, but not as much as desired. If a script can be deferred, it can also be moved to the bottom of the page. That will make your web pages load faster.&lt;/P&gt;&lt;h3 id=css_expressions&gt;Avoid CSS Expressions&lt;/H3&gt;&lt;p class=date&gt;tag: css&lt;/P&gt;&lt;p&gt;CSS expressions are a powerful (and dangerous) way to set CSS properties dynamically. They were supported in Internet Explorer starting with version 5, but were &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms537634(VS.85).aspx&quot;&gt;deprecated starting with IE8&lt;/A&gt;. As an example, the background color could be set to alternate every hour using CSS expressions:&lt;/P&gt;&lt;pre&gt;background-color: expression( (new Date()).getHours()%2 ? &quot;#B8D4FF&quot; : &quot;#F08A00&quot; );&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;As shown here, the &lt;code&gt;expression&lt;/CODE&gt; method accepts a JavaScript expression. The CSS property is set to the result of evaluating the JavaScript expression. The &lt;code&gt;expression&lt;/CODE&gt; method is ignored by other browsers, so it is useful for setting properties in Internet Explorer needed to create a consistent experience across browsers.&lt;/P&gt;&lt;p&gt;The problem with expressions is that they are evaluated more frequently than most people expect. Not only are they evaluated when the page is rendered and resized, but also when the page is scrolled and even when the user moves the mouse over the page. Adding a counter to the CSS expression allows us to keep track of when and how often a CSS expression is evaluated. Moving the mouse around the page can easily generate more than 10,000 evaluations.&lt;/P&gt;&lt;p&gt;One way to reduce the number of times your CSS expression is evaluated is to use one-time expressions, where the first time the expression is evaluated it sets the style property to an explicit value, which replaces the CSS expression. If the style property must be set dynamically throughout the life of the page, using event handlers instead of CSS expressions is an alternative approach. If you must use CSS expressions, remember that they may be evaluated thousands of times and could affect the performance of your page.&lt;/P&gt;&lt;h3 id=external&gt;Make JavaScript and CSS External&lt;/H3&gt;&lt;p class=date&gt;tag: javascript, css&lt;/P&gt;&lt;p&gt;Many of these performance rules deal with how external components are managed. However, before these considerations arise you should ask a more basic question: Should JavaScript and CSS be contained in external files, or inlined in the page itself?&lt;/P&gt;&lt;p&gt;Using external files in the real world generally produces faster pages because the JavaScript and CSS files are cached by the browser. JavaScript and CSS that are inlined in HTML documents get downloaded every time the HTML document is requested. This reduces the number of HTTP requests that are needed, but increases the size of the HTML document. On the other hand, if the JavaScript and CSS are in external files cached by the browser, the size of the HTML document is reduced without increasing the number of HTTP requests. &lt;/P&gt;&lt;p&gt;The key factor, then, is the frequency with which external JavaScript and CSS components are cached relative to the number of HTML documents requested. This factor, although difficult to quantify, can be gauged using various metrics. If users on your site have multiple page views per session and many of your pages re-use the same scripts and stylesheets, there is a greater potential benefit from cached external files. &lt;/P&gt;&lt;p&gt;Many web sites fall in the middle of these metrics. For these sites, the best solution generally is to deploy the JavaScript and CSS as external files. The only exception where inlining is preferable is with home pages, such as &lt;a href=&quot;http://www.yahoo.com/&quot;&gt;Yahoo!&#39;s front page&lt;/A&gt; and &lt;a href=&quot;http://my.yahoo.com/&quot;&gt;My Yahoo!&lt;/A&gt;. Home pages that have few (perhaps only one) page view per session may find that inlining JavaScript and CSS results in faster end-user response times.&lt;/P&gt;&lt;p&gt;For front pages that are typically the first of many page views, there are techniques that leverage the reduction of HTTP requests that inlining provides, as well as the caching benefits achieved through using external files. One such technique is to inline JavaScript and CSS in the front page, but dynamically download the external files after the page has finished loading. Subsequent pages would reference the external files that should already be in the browser&#39;s cache.&lt;/P&gt;&lt;h3 id=dns_lookups&gt;Reduce DNS Lookups&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;The Domain Name System (DNS) maps hostnames to IP addresses, just as phonebooks map people&#39;s names to their phone numbers. When you type www.yahoo.com into your browser, a DNS resolver contacted by the browser returns that server&#39;s IP address. DNS has a cost. It typically takes 20-120 milliseconds for DNS to lookup the IP address for a given hostname. The browser can&#39;t download anything from this hostname until the DNS lookup is completed. &lt;/P&gt;&lt;p&gt;DNS lookups are cached for better performance. This caching can occur on a special caching server, maintained by the user&#39;s ISP or local area network, but there is also caching that occurs on the individual user&#39;s computer. The DNS information remains in the operating system&#39;s DNS cache (the &quot;DNS Client service&quot; on Microsoft Windows). Most browsers have their own caches, separate from the operating system&#39;s cache. As long as the browser keeps a DNS record in its own cache, it doesn&#39;t bother the operating system with a request for the record.&lt;/P&gt;&lt;p&gt;Internet Explorer caches DNS lookups for 30 minutes by default, as specified by the &lt;code&gt;DnsCacheTimeout&lt;/CODE&gt; registry setting. Firefox caches DNS lookups for 1 minute, controlled by the &lt;code&gt;network.dnsCacheExpiration&lt;/CODE&gt; configuration setting. (Fasterfox changes this to 1 hour.)&lt;/P&gt;&lt;p&gt;When the client&#39;s DNS cache is empty (for both the browser and the operating system), the number of DNS lookups is equal to the number of unique hostnames in the web page. This includes the hostnames used in the page&#39;s URL, images, script files, stylesheets, Flash objects, etc. Reducing the number of unique hostnames reduces the number of DNS lookups. &lt;/P&gt;&lt;p&gt;Reducing the number of unique hostnames has the potential to reduce the amount of parallel downloading that takes place in the page. Avoiding DNS lookups cuts response times, but reducing parallel downloads may increase response times. My guideline is to split these components across at least two but no more than four hostnames. This results in a good compromise between reducing DNS lookups and allowing a high degree of parallel downloads.&lt;/P&gt;&lt;h3 id=minify&gt;Minify JavaScript and CSS&lt;/H3&gt;&lt;p class=date&gt;tag: javascript, css&lt;/P&gt;&lt;p&gt;Minification is the practice of removing unnecessary characters from code to reduce its size thereby improving load times. When code is minified all comments are removed, as well as unneeded white space characters (space, newline, and tab). In the case of JavaScript, this improves response time performance because the size of the downloaded file is reduced. Two popular tools for minifying JavaScript code are &lt;a href=&quot;http://crockford.com/javascript/jsmin&quot;&gt;JSMin&lt;/A&gt; and &lt;a href=&quot;http://developer.yahoo.com/yui/compressor/&quot;&gt;YUI Compressor&lt;/A&gt;. The YUI compressor can also minify CSS.&lt;/P&gt;&lt;p&gt;Obfuscation is an alternative optimization that can be applied to source code. It&#39;s more complex than minification and thus more likely to generate bugs as a result of the obfuscation step itself. In a survey of ten top U.S. web sites, minification achieved a 21% size reduction versus 25% for obfuscation. Although obfuscation has a higher size reduction, minifying JavaScript is less risky.&lt;/P&gt;&lt;p&gt;In addition to minifying external scripts and styles, inlined &lt;code&gt;&amp;lt;script&amp;gt;&lt;/CODE&gt; and &lt;code&gt;&amp;lt;style&amp;gt;&lt;/CODE&gt; blocks can and should also be minified. Even if you gzip your scripts and styles, minifying them will still reduce the size by 5% or more. As the use and size of JavaScript and CSS increases, so will the savings gained by minifying your code.&lt;/P&gt;&lt;h3 id=redirects&gt;Avoid Redirects&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;Redirects are accomplished using the 301 and 302 status codes. Here&#39;s an example of the HTTP headers in a 301 response:&lt;/P&gt;&lt;pre&gt;HTTP/1.1 301 Moved Permanently
      Location: http://example.com/newuri
      Content-Type: text/html&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;The browser automatically takes the user to the URL specified in the &lt;code&gt;Location&lt;/CODE&gt; field. All the information necessary for a redirect is in the headers. The body of the response is typically empty. Despite their names, neither a 301 nor a 302 response is cached in practice unless additional headers, such as &lt;code&gt;Expires&lt;/CODE&gt; or &lt;code&gt;Cache-Control&lt;/CODE&gt;, indicate it should be. The meta refresh tag and JavaScript are other ways to direct users to a different URL, but if you must do a redirect, the preferred technique is to use the standard 3xx HTTP status codes, primarily to ensure the back button works correctly.&lt;/P&gt;&lt;p&gt;The main thing to remember is that redirects slow down the user experience. Inserting a redirect between the user and the HTML document delays everything in the page since nothing in the page can be rendered and no components can start being downloaded until the HTML document has arrived.&lt;/P&gt;&lt;p&gt;One of the most wasteful redirects happens frequently and web developers are generally not aware of it. It occurs when a trailing slash (/) is missing from a URL that should otherwise have one. For example, going to &lt;a href=&quot;http://astrology.yahoo.com/astrology&quot;&gt;http://astrology.yahoo.com/astrology&lt;/A&gt; results in a 301 response containing a redirect to &lt;a href=&quot;http://astrology.yahoo.com/astrology/&quot;&gt;http://astrology.yahoo.com/astrology/&lt;/A&gt; (notice the added trailing slash). This is fixed in Apache by using &lt;code&gt;Alias&lt;/CODE&gt; or &lt;code&gt;mod_rewrite&lt;/CODE&gt;, or the &lt;code&gt;DirectorySlash&lt;/CODE&gt; directive if you&#39;re using Apache handlers.&lt;/P&gt;&lt;p&gt;Connecting an old web site to a new one is another common use for redirects. Others include connecting different parts of a website and directing the user based on certain conditions (type of browser, type of user account, etc.). Using a redirect to connect two web sites is simple and requires little additional coding. Although using redirects in these situations reduces the complexity for developers, it degrades the user experience. Alternatives for this use of redirects include using &lt;code&gt;Alias&lt;/CODE&gt; and &lt;code&gt;mod_rewrite&lt;/CODE&gt; if the two code paths are hosted on the same server. If a domain name change is the cause of using redirects, an alternative is to create a CNAME (a DNS record that creates an alias pointing from one domain name to another) in combination with &lt;code&gt;Alias&lt;/CODE&gt; or &lt;code&gt;mod_rewrite&lt;/CODE&gt;.&lt;/P&gt;&lt;h3 id=js_dupes&gt;Remove Duplicate Scripts&lt;/H3&gt;&lt;p class=date&gt;tag: javascript&lt;/P&gt;&lt;p&gt;It hurts performance to include the same JavaScript file twice in one page. This isn&#39;t as unusual as you might think. A review of the ten top U.S. web sites shows that two of them contain a duplicated script. Two main factors increase the odds of a script being duplicated in a single web page: team size and number of scripts. When it does happen, duplicate scripts hurt performance by creating unnecessary HTTP requests and wasted JavaScript execution.&lt;/P&gt;&lt;p&gt;Unnecessary HTTP requests happen in Internet Explorer, but not in Firefox. In Internet Explorer, if an external script is included twice and is not cacheable, it generates two HTTP requests during page loading. Even if the script is cacheable, extra HTTP requests occur when the user reloads the page.&lt;/P&gt;&lt;p&gt;In addition to generating wasteful HTTP requests, time is wasted evaluating the script multiple times. This redundant JavaScript execution happens in both Firefox and Internet Explorer, regardless of whether the script is cacheable.&lt;/P&gt;&lt;p&gt;One way to avoid accidentally including the same script twice is to implement a script management module in your templating system. The typical way to include a script is to use the SCRIPT tag in your HTML page.&lt;/P&gt;&lt;pre&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;menu_1.0.17.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;An alternative in PHP would be to create a function called &lt;code&gt;insertScript&lt;/CODE&gt;.&lt;/P&gt;&lt;pre&gt;&amp;lt;?php insertScript(&quot;menu.js&quot;) ?&amp;gt;&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;In addition to preventing the same script from being inserted multiple times, this function could handle other issues with scripts, such as dependency checking and adding version numbers to script filenames to support far future Expires headers.&lt;/P&gt;&lt;h3 id=etags&gt;Configure ETags&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;Entity tags (ETags) are a mechanism that web servers and browsers use to determine whether the component in the browser&#39;s cache matches the one on the origin server. (An &quot;entity&quot; is another word a &quot;component&quot;: images, scripts, stylesheets, etc.) ETags were added to provide a mechanism for validating entities that is more flexible than the last-modified date. An ETag is a string that uniquely identifies a specific version of a component. The only format constraints are that the string be quoted. The origin server specifies the component&#39;s ETag using the &lt;code&gt;ETag&lt;/CODE&gt; response header.&lt;/P&gt;&lt;pre&gt;HTTP/1.1 200 OK
      Last-Modified: Tue, 12 Dec 2006 03:03:59 GMT
      ETag: &quot;10c24bc-4ab-457e1c1f&quot;
      Content-Length: 12195&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;Later, if the browser has to validate a component, it uses the &lt;code&gt;If-None-Match&lt;/CODE&gt; header to pass the ETag back to the origin server. If the ETags match, a 304 status code is returned reducing the response by 12195 bytes for this example. &lt;/P&gt;&lt;pre&gt;GET /i/yahoo.gif HTTP/1.1
      Host: us.yimg.com
      If-Modified-Since: Tue, 12 Dec 2006 03:03:59 GMT
      If-None-Match: &quot;10c24bc-4ab-457e1c1f&quot;
      HTTP/1.1 304 Not Modified&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;The problem with ETags is that they typically are constructed using attributes that make them unique to a specific server hosting a site. ETags won&#39;t match when a browser gets the original component from one server and later tries to validate that component on a different server, a situation that is all too common on Web sites that use a cluster of servers to handle requests. By default, both Apache and IIS embed data in the ETag that dramatically reduces the odds of the validity test succeeding on web sites with multiple servers. &lt;/P&gt;&lt;p&gt;The ETag format for Apache 1.3 and 2.x is &lt;code&gt;inode-size-timestamp&lt;/CODE&gt;. Although a given file may reside in the same directory across multiple servers, and have the same file size, permissions, timestamp, etc., its inode is different from one server to the next. &lt;/P&gt;&lt;p&gt;IIS 5.0 and 6.0 have a similar issue with ETags. The format for ETags on IIS is &lt;code&gt;Filetimestamp:ChangeNumber&lt;/CODE&gt;. A &lt;code&gt;ChangeNumber&lt;/CODE&gt; is a counter used to track configuration changes to IIS. It&#39;s unlikely that the &lt;code&gt;ChangeNumber&lt;/CODE&gt; is the same across all IIS servers behind a web site. &lt;/P&gt;&lt;p&gt;The end result is ETags generated by Apache and IIS for the exact same component won&#39;t match from one server to another. If the ETags don&#39;t match, the user doesn&#39;t receive the small, fast 304 response that ETags were designed for; instead, they&#39;ll get a normal 200 response along with all the data for the component. If you host your web site on just one server, this isn&#39;t a problem. But if you have multiple servers hosting your web site, and you&#39;re using Apache or IIS with the default ETag configuration, your users are getting slower pages, your servers have a higher load, you&#39;re consuming greater bandwidth, and proxies aren&#39;t caching your content efficiently. Even if your components have a far future &lt;code&gt;Expires&lt;/CODE&gt; header, a conditional GET request is still made whenever the user hits Reload or Refresh. &lt;/P&gt;&lt;p&gt;If you&#39;re not taking advantage of the flexible validation model that ETags provide, it&#39;s better to just remove the ETag altogether. The &lt;code&gt;Last-Modified&lt;/CODE&gt; header validates based on the component&#39;s timestamp. And removing the ETag reduces the size of the HTTP headers in both the response and subsequent requests. This &lt;a href=&quot;http://support.microsoft.com/?id=922733&quot;&gt;Microsoft Support article&lt;/A&gt; describes how to remove ETags. In Apache, this is done by simply adding the following line to your Apache configuration file: &lt;/P&gt;&lt;pre&gt;FileETag none&lt;/PRE&gt;&lt;br /&gt;
&lt;h3 id=cacheajax&gt;Make Ajax Cacheable&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;One of the cited benefits of Ajax is that it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using Ajax is no guarantee that the user won&#39;t be twiddling his thumbs waiting for those asynchronous JavaScript and XML responses to return. In many applications, whether or not the user is kept waiting depends on how Ajax is used. For example, in a web-based email client the user will be kept waiting for the results of an Ajax request to find all the email messages that match their search criteria. It&#39;s important to remember that &quot;asynchronous&quot; does not imply &quot;instantaneous&quot;.&lt;/P&gt;&lt;p&gt;To improve performance, it&#39;s important to optimize these Ajax responses. The most important way to improve the performance of Ajax is to make the responses cacheable, as discussed in &lt;a href=&quot;#expires&quot;&gt;Add an Expires or a Cache-Control Header&lt;/A&gt;. Some of the other rules also apply to Ajax:&lt;br /&gt;
&lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;&lt;a href=&quot;#gzip&quot;&gt;Gzip Components&lt;/A&gt;&lt;br /&gt;
&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;a href=&quot;#dns_lookups&quot;&gt;Reduce DNS Lookups&lt;/A&gt;&lt;br /&gt;
&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;a href=&quot;#minify&quot;&gt;Minify JavaScript&lt;/A&gt;&lt;br /&gt;
&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;a href=&quot;#redirects&quot;&gt;Avoid Redirects&lt;/A&gt;&lt;br /&gt;
&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;a href=&quot;#etags&quot;&gt;Configure ETags&lt;/A&gt;&lt;br /&gt;
&lt;/LI&gt;&lt;/UL&gt;&lt;br /&gt;
&lt;p&gt;Let&#39;s look at an example. A Web 2.0 email client might use Ajax to download the user&#39;s address book for autocompletion. If the user hasn&#39;t modified her address book since the last time she used the email web app, the previous address book response could be read from cache if that Ajax response was made cacheable with a future Expires or Cache-Control header. The browser must be informed when to use a previously cached address book response versus requesting a new one. This could be done by adding a timestamp to the address book Ajax URL indicating the last time the user modified her address book, for example, &lt;code&gt;&amp;amp;t=1190241612&lt;/CODE&gt;. If the address book hasn&#39;t been modified since the last download, the timestamp will be the same and the address book will be read from the browser&#39;s cache eliminating an extra HTTP roundtrip. If the user has modified her address book, the timestamp ensures the new URL doesn&#39;t match the cached response, and the browser will request the updated address book entries.&lt;/P&gt;&lt;p&gt;Even though your Ajax responses are created dynamically, and might only be applicable to a single user, they can still be cached. Doing so will make your Web 2.0 apps faster.&lt;/P&gt;&lt;h3 id=flush&gt;Flush the Buffer Early&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;When users request a page, it can take anywhere from 200 to 500ms for the backend server to stitch together the HTML page. During this time, the browser is idle as it waits for the data to arrive. In PHP you have the function &lt;a href=&quot;http://php.net/flush&quot;&gt;flush()&lt;/A&gt;. It allows you to send your partially ready HTML response to the browser so that the browser can start fetching components while your backend is busy with the rest of the HTML page. The benefit is mainly seen on busy backends or light frontends. &lt;/P&gt;&lt;p&gt;A good place to consider flushing is right after the HEAD because the HTML for the head is usually easier to produce and it allows you to include any CSS and JavaScript files for the browser to start fetching in parallel while the backend is still processing. &lt;/P&gt;&lt;p&gt;Example:&lt;/P&gt;&lt;pre&gt;... &amp;lt;!-- css, js --&amp;gt;
    &amp;lt;/head&amp;gt;
    &lt;span class=hilite&gt;&amp;lt;?php flush(); ?&amp;gt;&lt;/SPAN&gt;
    &amp;lt;body&amp;gt;
      ... &amp;lt;!-- content --&amp;gt;
&lt;/PRE&gt;&lt;br /&gt;
&lt;p&gt;&lt;a href=&quot;http://search.yahoo.com/&quot;&gt;Yahoo! search&lt;/A&gt; pioneered research and real user testing to prove the benefits of using this technique.&lt;/P&gt;&lt;h3 id=ajax_get&gt;Use GET for AJAX Requests&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;The &lt;a href=&quot;http://mail.yahoo.com/&quot;&gt;Yahoo! Mail&lt;/A&gt; team found that when using &lt;code&gt;XMLHttpRequest&lt;/CODE&gt;, POST is implemented in the browsers as a two-step process: sending the headers first, then sending data. So it&#39;s best to use GET, which only takes one TCP packet to send (unless you have a lot of cookies). The maximum URL length in IE is 2K, so if you send more than 2K data you might not be able to use GET. &lt;/P&gt;&lt;p&gt;An interesting side affect is that POST without actually posting any data behaves like GET. Based on the &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html&quot;&gt;HTTP specs&lt;/A&gt;, GET is meant for retrieving information, so it makes sense (semantically) to use GET when you&#39;re only requesting data, as opposed to sending data to be stored server-side. &lt;/P&gt;&lt;h3 id=postload&gt;Post-load Components&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;You can take a closer look at your page and ask yourself: &quot;What&#39;s absolutely required in order to render the page initially?&quot;. The rest of the content and components can wait. &lt;/P&gt;&lt;p&gt;JavaScript is an ideal candidate for splitting before and after the onload event. For example if you have JavaScript code and libraries that do drag and drop and animations, those can wait, because dragging elements on the page comes after the initial rendering. Other places to look for candidates for post-loading include hidden content (content that appears after a user action) and images below the fold. &lt;/P&gt;&lt;p&gt;Tools to help you out in your effort: &lt;a href=&quot;http://developer.yahoo.com/yui/imageloader/&quot;&gt;YUI Image Loader&lt;/A&gt; allows you to delay images below the fold and the &lt;a href=&quot;http://developer.yahoo.com/yui/get/&quot;&gt;YUI Get utility&lt;/A&gt; is an easy way to include JS and CSS on the fly. For an example in the wild take a look at &lt;a href=&quot;http://www.yahoo.com/&quot;&gt;Yahoo! Home Page&lt;/A&gt; with Firebug&#39;s Net Panel turned on. &lt;/P&gt;&lt;p&gt;It&#39;s good when the performance goals are inline with other web development best practices. In this case, the idea of progressive enhancement tells us that JavaScript, when supported, can improve the user experience but you have to make sure the page works even without JavaScript. So after you&#39;ve made sure the page works fine, you can enhance it with some post-loaded scripts that give you more bells and whistles such as drag and drop and animations. &lt;/P&gt;&lt;h3 id=preload&gt;Preload Components&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;Preload may look like the opposite of post-load, but it actually has a different goal. By preloading components you can take advantage of the time the browser is idle and request components (like images, styles and scripts) you&#39;ll need in the future. This way when the user visits the next page, you could have most of the components already in the cache and your page will load much faster for the user. &lt;/P&gt;&lt;p&gt;There are actually several types of preloading: &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;&lt;em&gt;Unconditional&lt;/EM&gt; preload - as soon as onload fires, you go ahead and fetch some extra components. Check google.com for an example of how a sprite image is requested onload. This sprite image is not needed on the google.com homepage, but it is needed on the consecutive search result page.&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;em&gt;Conditional&lt;/EM&gt; preload - based on a user action you make an educated guess where the user is headed next and preload accordingly. On &lt;a href=&quot;http://search.yahoo.com/&quot;&gt;search.yahoo.com&lt;/A&gt; you can see how some extra components are requested after you start typing in the input box.&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;em&gt;Anticipated&lt;/EM&gt; preload - preload in advance before launching a redesign. It often happens after a redesign that you hear: &quot;The new site is cool, but it&#39;s slower than before&quot;. Part of the problem could be that the users were visiting your old site with a full cache, but the new one is always an empty cache experience. You can mitigate this side effect by preloading some components before you even launched the redesign. Your old site can use the time the browser is idle and request images and scripts that will be used by the new site&lt;/LI&gt;&lt;/UL&gt;&lt;h3 id=min_dom&gt;Reduce the Number of DOM Elements&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;A complex page means more bytes to download and it also means slower DOM access in JavaScript. It makes a difference if you loop through 500 or 5000 DOM elements on the page when you want to add an event handler for example. &lt;/P&gt;&lt;p&gt;A high number of DOM elements can be a symptom that there&#39;s something that should be improved with the markup of the page without necessarily removing content. Are you using nested tables for layout purposes? Are you throwing in more &lt;code&gt;&amp;lt;div&amp;gt;&lt;/CODE&gt;s only to fix layout issues? Maybe there&#39;s a better and more semantically correct way to do your markup. &lt;/P&gt;&lt;p&gt;A great help with layouts are the &lt;a href=&quot;http://developer.yahoo.com/yui/&quot;&gt;YUI CSS utilities&lt;/A&gt;: grids.css can help you with the overall layout, fonts.css and reset.css can help you strip away the browser&#39;s defaults formatting. This is a chance to start fresh and think about your markup, for example use &lt;code&gt;&amp;lt;div&amp;gt;&lt;/CODE&gt;s only when it makes sense semantically, and not because it renders a new line. &lt;/P&gt;&lt;p&gt;The number of DOM elements is easy to test, just type in Firebug&#39;s console:&lt;br /&gt;
&lt;code&gt;document.getElementsByTagName(&#39;*&#39;).length&lt;/CODE&gt; &lt;/P&gt;&lt;p&gt;And how many DOM elements are too many? Check other similar pages that have good markup. For example the &lt;a href=&quot;http://www.yahoo.com/&quot;&gt;Yahoo! Home Page&lt;/A&gt; is a pretty busy page and still under 700 elements (HTML tags). &lt;/P&gt;&lt;h3 id=split&gt;Split Components Across Domains&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;Splitting components allows you to maximize parallel downloads. Make sure you&#39;re using not more than 2-4 domains because of the DNS lookup penalty. For example, you can host your HTML and dynamic content on &lt;code&gt;www.example.org&lt;/CODE&gt; and split static components between &lt;code&gt;static1.example.org&lt;/CODE&gt; and &lt;code&gt;static2.example.org&lt;/CODE&gt; &lt;/P&gt;&lt;p&gt;For more information check &quot;&lt;a href=&quot;http://yuiblog.com/blog/2007/04/11/performance-research-part-4/&quot;&gt;Maximizing Parallel Downloads in the Carpool Lane&lt;/A&gt;&quot; by Tenni Theurer and Patty Chi. &lt;/P&gt;&lt;h3 id=iframes&gt;Minimize the Number of iframes&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;Iframes allow an HTML document to be inserted in the parent document. It&#39;s important to understand how iframes work so they can be used effectively. &lt;/P&gt;&lt;p&gt;&lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/CODE&gt; pros: &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;Helps with slow third-party content like badges and ads&lt;/LI&gt;
&lt;li class=bullist&gt;Security sandbox&lt;/LI&gt;
&lt;li class=bullist&gt;Download scripts in parallel&lt;/LI&gt;&lt;/UL&gt;&lt;p&gt;&lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/CODE&gt; cons: &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;Costly even if blank&lt;/LI&gt;
&lt;li class=bullist&gt;Blocks page onload&lt;/LI&gt;
&lt;li class=bullist&gt;Non-semantic&lt;/LI&gt;&lt;/UL&gt;&lt;h3 id=no404&gt;No 404s&lt;/H3&gt;&lt;p class=date&gt;tag: content&lt;/P&gt;&lt;p&gt;HTTP requests are expensive so making an HTTP request and getting a useless response (i.e. 404 Not Found) is totally unnecessary and will slow down the user experience without any benefit. &lt;/P&gt;&lt;p&gt;Some sites have helpful 404s &quot;Did you mean X?&quot;, which is great for the user experience but also wastes server resources (like database, etc). Particularly bad is when the link to an external JavaScript is wrong and the result is a 404. First, this download will block parallel downloads. Next the browser may try to parse the 404 response body as if it were JavaScript code, trying to find something usable in it. &lt;/P&gt;&lt;h3 id=cookie_size&gt;Reduce Cookie Size&lt;/H3&gt;&lt;p class=date&gt;tag: cookie&lt;/P&gt;&lt;p&gt;HTTP cookies are used for a variety of reasons such as authentication and personalization. Information about cookies is exchanged in the HTTP headers between web servers and browsers. It&#39;s important to keep the size of cookies as low as possible to minimize the impact on the user&#39;s response time. &lt;/P&gt;&lt;p&gt;For more information check &lt;a href=&quot;http://yuiblog.com/blog/2007/03/01/performance-research-part-3/&quot;&gt;&quot;When the Cookie Crumbles&quot;&lt;/A&gt; by Tenni Theurer and Patty Chi. The take-home of this research: &lt;/P&gt;&lt;p&gt;&lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;Eliminate unnecessary cookies&lt;/LI&gt;
&lt;li class=bullist&gt;Keep cookie sizes as low as possible to minimize the impact on the user response time&lt;/LI&gt;
&lt;li class=bullist&gt;Be mindful of setting cookies at the appropriate domain level so other sub-domains are not affected&lt;/LI&gt;
&lt;li class=bullist&gt;Set an Expires date appropriately. An earlier Expires date or none removes the cookie sooner, improving the user response time&lt;/LI&gt;&lt;/UL&gt;&lt;h3 id=cookie_free&gt;Use Cookie-free Domains for Components&lt;/H3&gt;&lt;p class=date&gt;tag: cookie&lt;/P&gt;&lt;p&gt;When the browser makes a request for a static image and sends cookies together with the request, the server doesn&#39;t have any use for those cookies. So they only create network traffic for no good reason. You should make sure static components are requested with cookie-free requests. Create a subdomain and host all your static components there. &lt;/P&gt;&lt;p&gt;If your domain is &lt;code&gt;www.example.org&lt;/CODE&gt;, you can host your static components on &lt;code&gt;static.example.org&lt;/CODE&gt;. However, if you&#39;ve already set cookies on the top-level domain &lt;code&gt;example.org&lt;/CODE&gt; as opposed to &lt;code&gt;www.example.org&lt;/CODE&gt;, then all the requests to &lt;code&gt;static.example.org&lt;/CODE&gt; will include those cookies. In this case, you can buy a whole new domain, host your static components there, and keep this domain cookie-free. Yahoo! uses &lt;code&gt;yimg.com&lt;/CODE&gt;, YouTube uses &lt;code&gt;ytimg.com&lt;/CODE&gt;, Amazon uses &lt;code&gt;images-amazon.com&lt;/CODE&gt; and so on. &lt;/P&gt;&lt;p&gt;Another benefit of hosting static components on a cookie-free domain is that some proxies might refuse to cache the components that are requested with cookies. On a related note, if you wonder if you should use example.org or www.example.org for your home page, consider the cookie impact. Omitting www leaves you no choice but to write cookies to &lt;code&gt;*.example.org&lt;/CODE&gt;, so for performance reasons it&#39;s best to use the www subdomain and write the cookies to that subdomain. &lt;/P&gt;&lt;h3 id=dom_access&gt;Minimize DOM Access&lt;/H3&gt;&lt;p class=date&gt;tag: javascript&lt;/P&gt;&lt;p&gt;Accessing DOM elements with JavaScript is slow so in order to have a more responsive page, you should: &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;Cache references to accessed elements&lt;/LI&gt;
&lt;li class=bullist&gt;Update nodes &quot;offline&quot; and then add them to the tree&lt;/LI&gt;
&lt;li class=bullist&gt;Avoid fixing layout with JavaScript&lt;/LI&gt;&lt;/UL&gt;&lt;p&gt;For more information check the YUI theatre&#39;s &lt;a href=&quot;http://yuiblog.com/blog/2007/12/20/video-lecomte/&quot;&gt;&quot;High Performance Ajax Applications&quot;&lt;/A&gt; by Julien Lecomte. &lt;/P&gt;&lt;h3 id=events&gt;Develop Smart Event Handlers&lt;/H3&gt;&lt;p class=date&gt;tag: javascript&lt;/P&gt;&lt;p&gt;Sometimes pages feel less responsive because of too many event handlers attached to different elements of the DOM tree which are then executed too often. That&#39;s why using &lt;em&gt;event delegation&lt;/EM&gt; is a good approach. If you have 10 buttons inside a &lt;code&gt;div&lt;/CODE&gt;, attach only one event handler to the div wrapper, instead of one handler for each button. Events bubble up so you&#39;ll be able to catch the event and figure out which button it originated from. &lt;/P&gt;&lt;p&gt;You also don&#39;t need to wait for the onload event in order to start doing something with the DOM tree. Often all you need is the element you want to access to be available in the tree. You don&#39;t have to wait for all images to be downloaded. &lt;code&gt;DOMContentLoaded&lt;/CODE&gt; is the event you might consider using instead of onload, but until it&#39;s available in all browsers, you can use the &lt;a href=&quot;http://developer.yahoo.com/yui/event/&quot;&gt;YUI Event&lt;/A&gt; utility, which has an &lt;code&gt;&lt;a href=&quot;http://developer.yahoo.com/yui/event/#onavailable&quot;&gt;onAvailable&lt;/A&gt;&lt;/CODE&gt; method. &lt;/P&gt;&lt;p&gt;For more information check the YUI theatre&#39;s &lt;a href=&quot;http://yuiblog.com/blog/2007/12/20/video-lecomte/&quot;&gt;&quot;High Performance Ajax Applications&quot;&lt;/A&gt; by Julien Lecomte. &lt;/P&gt;&lt;h3 id=csslink&gt;Choose &amp;lt;link&amp;gt; over @import&lt;/H3&gt;&lt;p class=date&gt;tag: css&lt;/P&gt;&lt;p&gt;One of the previous best practices states that CSS should be at the top in order to allow for progressive rendering. &lt;/P&gt;&lt;p&gt;In IE &lt;code&gt;@import&lt;/CODE&gt; behaves the same as using &lt;code&gt;&amp;lt;link&amp;gt;&lt;/CODE&gt; at the bottom of the page, so it&#39;s best not to use it. &lt;/P&gt;&lt;h3 id=no_filters&gt;Avoid Filters&lt;/H3&gt;&lt;p class=date&gt;tag: css&lt;/P&gt;&lt;p&gt;The IE-proprietary &lt;code&gt;AlphaImageLoader&lt;/CODE&gt; filter aims to fix a problem with semi-transparent true color PNGs in IE versions &amp;lt; 7. The problem with this filter is that it blocks rendering and freezes the browser while the image is being downloaded. It also increases memory consumption and is applied per element, not per image, so the problem is multiplied. &lt;/P&gt;&lt;p&gt;The best approach is to avoid &lt;code&gt;AlphaImageLoader&lt;/CODE&gt; completely and use gracefully degrading PNG8 instead, which are fine in IE. If you absolutely need &lt;code&gt;AlphaImageLoader&lt;/CODE&gt;, use the underscore hack &lt;code&gt;_filter&lt;/CODE&gt; as to not penalize your IE7+ users. &lt;/P&gt;&lt;h3 id=opt_images&gt;Optimize Images&lt;/H3&gt;&lt;p class=date&gt;tag: images&lt;/P&gt;&lt;p&gt;After a designer is done with creating the images for your web page, there are still some things you can try before you FTP those images to your web server. &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;You can check the GIFs and see if they are using a palette size corresponding to the number of colors in the image. Using &lt;a href=&quot;http://www.imagemagick.org/&quot;&gt;imagemagick&lt;/A&gt; it&#39;s easy to check using &lt;br /&gt;
&lt;code&gt;identify -verbose image.gif&lt;/CODE&gt; &lt;br /&gt;
When you see an image useing 4 colors and a 256 color &quot;slots&quot; in the palette, there is room for improvement. &lt;/LI&gt;
&lt;li class=bullist&gt;Try converting GIFs to PNGs and see if there is a saving. More often than not, there is. Developers often hesitate to use PNGs due to the limited support in browsers, but this is now a thing of the past. The only real problem is alpha-transparency in true color PNGs, but then again, GIFs are not true color and don&#39;t support variable transparency either. So anything a GIF can do, a palette PNG (PNG8) can do too (except for animations). This simple imagemagick command results in totally safe-to-use PNGs:&lt;br /&gt;
&lt;code&gt;convert image.gif image.png&lt;/CODE&gt; &lt;br /&gt;
&quot;All we are saying is: Give PiNG a Chance!&quot; &lt;/LI&gt;
&lt;li class=bullist&gt;Run &lt;a href=&quot;http://pmt.sourceforge.net/pngcrush/&quot;&gt;pngcrush&lt;/A&gt; (or any other PNG optimizer tool) on all your PNGs. Example: &lt;br /&gt;
&lt;code&gt;pngcrush image.png -rem alla -reduce -brute result.png&lt;/CODE&gt; &lt;/LI&gt;
&lt;li class=bullist&gt;Run jpegtran on all your JPEGs. This tool does lossless JPEG operations such as rotation and can also be used to optimize and remove comments and other useless information (such as EXIF information) from your images. &lt;br /&gt;
&lt;code&gt;jpegtran -copy none -optimize -perfect src.jpg dest.jpg&lt;/CODE&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;h3 id=opt_sprites&gt;Optimize CSS Sprites&lt;/H3&gt;&lt;p class=date&gt;tag: images&lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;Arranging the images in the sprite horizontally as opposed to vertically usually results in a smaller file size.&lt;/LI&gt;
&lt;li class=bullist&gt;Combining similar colors in a sprite helps you keep the color count low, ideally under 256 colors so to fit in a PNG8.&lt;/LI&gt;
&lt;li class=bullist&gt;&quot;Be mobile-friendly&quot; and don&#39;t leave big gaps between the images in a sprite. This doesn&#39;t affect the file size as much but requires less memory for the user agent to decompress the image into a pixel map. 100x100 image is 10 thousand pixels, where 1000x1000 is 1 million pixels &lt;/LI&gt;&lt;/UL&gt;&lt;h3 id=no_scale&gt;Don&#39;t Scale Images in HTML&lt;/H3&gt;&lt;p class=date&gt;tag: images&lt;/P&gt;&lt;p&gt;Don&#39;t use a bigger image than you need just because you can set the width and height in HTML. If you need &lt;br /&gt;
&lt;code&gt;&amp;lt;img width=&quot;100&quot; height=&quot;100&quot; src=&quot;mycat.jpg&quot; alt=&quot;My Cat&quot; /&amp;gt;&lt;/CODE&gt; &lt;br /&gt;
then your image (mycat.jpg) should be 100x100px rather than a scaled down 500x500px image. &lt;/P&gt;&lt;h3 id=favicon&gt;Make favicon.ico Small and Cacheable&lt;/H3&gt;&lt;p class=date&gt;tag: images&lt;/P&gt;&lt;p&gt;The favicon.ico is an image that stays in the root of your server. It&#39;s a necessary evil because even if you don&#39;t care about it the browser will still request it, so it&#39;s better not to respond with a &lt;code&gt;404 Not Found&lt;/CODE&gt;. Also since it&#39;s on the same server, cookies are sent every time it&#39;s requested. This image also interferes with the download sequence, for example in IE when you request extra components in the onload, the favicon will be downloaded before these extra components. &lt;/P&gt;&lt;p&gt;So to mitigate the drawbacks of having a favicon.ico make sure: &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;It&#39;s small, preferably under 1K.&lt;/LI&gt;
&lt;li class=bullist&gt;Set Expires header with what you feel comfortable (since you cannot rename it if you decide to change it). You can probably safely set the Expires header a few months in the future. You can check the last modified date of your current favicon.ico to make an informed decision. &lt;/LI&gt;&lt;/UL&gt;&lt;p&gt;&lt;a href=&quot;http://www.imagemagick.org/&quot;&gt;Imagemagick&lt;/A&gt; can help you create small favicons &lt;/P&gt;&lt;h3 id=under25&gt;Keep Components under 25K&lt;/H3&gt;&lt;p class=date&gt;tag: mobile&lt;/P&gt;&lt;p&gt;This restriction is related to the fact that iPhone won&#39;t cache components bigger than 25K. Note that this is the &lt;em&gt;uncompressed&lt;/EM&gt; size. This is where minification is important because gzip alone may not be sufficient. &lt;/P&gt;&lt;p&gt;For more information check &quot;&lt;a href=&quot;http://yuiblog.com/blog/2008/02/06/iphone-cacheability/&quot;&gt;Performance Research, Part 5: iPhone Cacheability - Making it Stick&lt;/A&gt;&quot; by Wayne Shea and Tenni Theurer. &lt;/P&gt;&lt;h3 id=multipart&gt;Pack Components into a Multipart Document&lt;/H3&gt;&lt;p class=date&gt;tag: mobile&lt;/P&gt;&lt;p&gt;Packing components into a multipart document is like an email with attachments, it helps you fetch several components with one HTTP request (remember: HTTP requests are expensive). When you use this technique, first check if the user agent supports it (iPhone does not). &lt;/P&gt;&lt;h3 id=emptysrc&gt;Avoid Empty Image src&lt;/H3&gt;&lt;p class=date&gt;tag: server&lt;/P&gt;&lt;p&gt;Image with empty string &lt;b&gt;src&lt;/B&gt; attribute occurs more than one will expect. It appears in two form: &lt;/P&gt;&lt;ol&gt;&lt;li&gt;straight HTML&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&amp;lt;img src=&quot;&quot;&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;
&lt;li&gt;JavaScript&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;var img = new Image();&lt;br /&gt;
img.src = &quot;&quot;;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;p&gt;Both forms cause the same effect: browser makes another request to your server. &lt;/P&gt;&lt;ul&gt;&lt;li class=bullist&gt;&lt;b&gt;Internet Explorer&lt;/B&gt; makes a request to the directory in which the page is located.&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;b&gt;Safari and Chrome&lt;/B&gt; make a request to the actual page itself.&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;b&gt;Firefox&lt;/B&gt; 3 and earlier versions behave the same as Safari and Chrome, but version 3.5 addressed this issue&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=444931&quot;&gt;[bug 444931]&lt;/A&gt; and no longer sends a request.&lt;/LI&gt;
&lt;li class=bullist&gt;&lt;b&gt;Opera&lt;/B&gt; does not do anything when an empty image src is encountered.&lt;/LI&gt;&lt;/UL&gt;&lt;br /&gt;
&lt;p&gt;&lt;b&gt;Why is this behavior bad? &lt;/B&gt;&lt;/P&gt;&lt;ol&gt;&lt;li&gt;Cripple your servers by sending a large amount of unexpected traffic, especially for pages that get millions of page views per day.&lt;/LI&gt;
&lt;li&gt;Waste server computing cycles generating a page that will never be viewed.&lt;/LI&gt;
&lt;li&gt;Possibly corrupt user data. If you are tracking state in the request, either by cookies or in another way, you have the possibility of destroying data. Even though the image request does not return an image, all of the headers are read and accepted by the browser, including all cookies. While the rest of the response is thrown away, the damage may already be done.&lt;/LI&gt;&lt;/OL&gt;&lt;br /&gt;
&lt;p&gt;The root cause of this behavior is the way that URI resolution is performed in browsers. This behavior is defined in RFC 3986 - Uniform Resource Identifiers. When an empty string is encountered as a URI, it is considered a relative URI and is resolved according to the algorithm defined in section 5.2. This specific example, an empty string, is listed in section 5.4. Firefox, Safari, and Chrome are all resolving an empty string correctly per the specification, while Internet Explorer is resolving it incorrectly, apparently in line with an earlier version of the specification, RFC 2396 - Uniform Resource Identifiers (this was obsoleted by RFC 3986). So technically, the browsers are doing what they are supposed to do to resolve relative URIs. The problem is that in this context, the empty string is clearly unintentional. &lt;/P&gt;&lt;p&gt;HTML5 adds to the description of the&amp;nbsp;tag&#39;s src attribute to instruct browsers not to make an additional request in section 4.8.2: &lt;/P&gt;&lt;blockquote&gt;The src attribute must be present, and must contain a valid URL referencing a non-interactive, optionally animated, image resource that is neither paged nor scripted. If the base URI of the element is the same as the document&#39;s address, then the src attribute&#39;s value must not be the empty string. &lt;/BLOCKQUOTE&gt;Hopefully, browsers will not have this problem in the future. Unfortunately, there is no such clause for &amp;lt;script src=&quot;&quot;&amp;gt; and &amp;lt;link href=&quot;&quot;&amp;gt;. Maybe there is still time to make that adjustment to ensure browsers don&#39;t accidentally implement this behavior. &lt;br /&gt;
&lt;p&gt;This rule was inspired by Yahoo!&#39;s JavaScript guru Nicolas C. Zakas. For more information check out his article &quot;&lt;a href=&quot;http://www.nczonline.net/blog/2009/11/30/empty-image-src-can-destroy-your-site/&quot;&gt;Empty image src can destroy your site&lt;/A&gt;&quot;. &lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/1871314905574236542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/speeding-up-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1871314905574236542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/1871314905574236542'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/10/speeding-up-website.html' title='Speeding up website'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6717633461788044275.post-6382682313885771760</id><published>2010-01-23T08:45:00.001-08:00</published><updated>2010-01-23T08:45:59.026-08:00</updated><title type='text'>OpenSource Vs Microsoft</title><content type='html'>&lt;b&gt;Can the open source software movement defeat (or severely cripple) Microsoft in the marketplace?&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://mahavirmunot.blogspot.com/feeds/6382682313885771760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mahavirmunot.blogspot.com/2010/01/opensource-vs-microsoft.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/6382682313885771760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6717633461788044275/posts/default/6382682313885771760'/><link rel='alternate' type='text/html' href='http://mahavirmunot.blogspot.com/2010/01/opensource-vs-microsoft.html' title='OpenSource Vs Microsoft'/><author><name>Mahavir Munot</name><uri>http://www.blogger.com/profile/12717919308500443668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>