<p>At work, we have a dedicated SEO Analyst who's job is to pour over lots of data (KeyNote/Compete etc) and generate up fancy reports for the executives so they can see how we are doing against our competitors in organic search ranking. He also leads initiatives to improve the SEO rankings on our sites by optimizing things as best we can.</p>

<p>We also have a longstanding mission to decrease our page load time, which right now is pretty shoddy on some pages.</p>

<p>The SEO guy mentioned that semantic, valid HTML gets more points by crawlers than jumbled messy HTML. I've been working on a real time HTML compressor that will decrease our page sizes my a pretty good chunk. Will compressing the HTML hurt us in site rankings?</p>

[{'answer_id': 47831, 'author': 'erickson', 'author_id': 3474, 'author_profile': 'https://Stackoverflow.com/users/3474', 'pm_score': 3, 'selected': False, 'text': '<p>I would suggest using compression at the transport layer, and eliminating whitespace from the HTML, but not sacrificing the semantics of your markup in the interest of speed. In fact, the better you "compress" your markup, the less effective the transport layer compression will be. Or, to put it a better way, let the gzip transfer-coding slim your HTML for you, and pour your energy into writing clean markup that renders quickly once it hits the browser.</p>\n'}, {'answer_id': 47834, 'author': 'Brian Lyttle', 'author_id': 636, 'author_profile': 'https://Stackoverflow.com/users/636', 'pm_score': 3, 'selected': False, 'text': '<p>Compressing HTML should not hurt you. </p>\n\n<p>When you say HTML compressor I assume you mean a tool that removed whitespace etc from your pages to make them smaller, right? This doesn\'t impact how a crawler will see your html as it likely strips the same things from the HTML when it grabs the page from your site. The \'semantic\' structure of the HTML exists whether compressed or not.</p>\n\n<p>You might also want to look at:</p>\n\n<ul>\n<li>Compressing pages with an GZIP compression in the web server</li>\n<li>Reducing size of images, CSS, javascript etc</li>\n<li>Considering how the browser\'s layout engine loads your pages.</li>\n</ul>\n\n<p>By jumbled HTML, this SEO person probably means the use of tables for layout and re-purposing of built in HTML elements (eg. <code>&lt;p class="headerOne"&gt;Header 1&lt;/</code>p>). This increases the ratio of HTML tags to page content, or keyword density in SEO terms. It has bigger problems though:</p>\n\n<ul>\n<li>Longer page load times due to increased content to download, why not use the H1 tag?</li>\n<li>It\'s difficult for screenreaders to understand and affects site accessibility.</li>\n<li>Browsers may take longer to render the content depending on how they parse and layout pages with styles.</li>\n</ul>\n'}, {'answer_id': 48511, 'author': 'graham.reeds', 'author_id': 342, 'author_profile': 'https://Stackoverflow.com/users/342', 'pm_score': 1, 'selected': False, 'text': '<p>I once retooled a messy tables-for-layout to xhtml 1.0 transitional and the size went from 100kb to 40kb. The images loaded went from 200kb to just 50kb.</p>\n\n<p>The reason I got such a large savings was because the site had all the JS embedded in every page. I also retooled all the JS so it was correct for both IE6 and FF2. The images were also compiled down to an image-map. All the techniques were well documented on <a href="http://www.alistapart.com/" rel="nofollow noreferrer">A List Apart</a> and easy to implement.</p>\n'}, {'answer_id': 61104, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Using compression does not hurt your page ranking. Matt Cutts talks about this in his article on <a href="http://www.mattcutts.com/blog/crawl-caching-proxy/" rel="nofollow noreferrer">Crawl Caching Proxy</a></p>\n\n<p>Your page load time can also be greatly improved by <a href="http://bdwebster.com/2008/04/16/resizing-images/" rel="nofollow noreferrer">resizing your images</a>. While you can use the height and width attributes in the img tag, this does not change the size of the images that is downloaded to the browser. Resizing the images before putting them on your pages can reduce the load time by 50% or more, depending on the number and type of images that you\'re using.</p>\n\n<p>Other things that can improve your page load time are:</p>\n\n<ul>\n<li>Use web standards/CSS for layout\ninstead of tables</li>\n<li>If you copy/paste\ncontent from MS Word, strip out the\nextra tags that Word generates</li>\n<li>Put\nCSS and javascript in external\nfiles, rather then embedded in the\npage. Helps when users visit more\nthan one page on your site because\nbrowsers typically cache these files</li>\n</ul>\n\n<p>This <a href="http://www.websiteoptimization.com/services/analyze/" rel="nofollow noreferrer">Web Page Analyzer</a> will give you a speed reports that shows how long different elements of your page take to download.</p>\n'}, {'answer_id': 106098, 'author': 'Rich Bradshaw', 'author_id': 16511, 'author_profile': 'https://Stackoverflow.com/users/16511', 'pm_score': 1, 'selected': False, 'text': '<p>Use gzip compression to compress the HTML in the transport stage, then just make sure that code validates and that you are using logical tags for everything.</p>\n'}, {'answer_id': 329386, 'author': 'Mike B', 'author_id': 3609, 'author_profile': 'https://Stackoverflow.com/users/3609', 'pm_score': 1, 'selected': False, 'text': '<blockquote>\n  <p>The SEO guy mentioned that semantic,\n  valid HTML gets more points by\n  crawlers than jumbled messy HTML.</p>\n</blockquote>\n\n<p>If a SEO guy ever tries to provide a fact about SEO then tell him to provide a source, because to the best of my knowledge that is simply untrue. If the content is there it will be crawled. It is a common urban-myth amongst SEO analysts that just isn\'t true.</p>\n\n<p>However, the use of header tags is recommended. &lt;H1> tags for the page title and &lt;H2> for main headings, then lower down for lower headings.</p>\n\n<blockquote>\n  <p>I\'ve been working on a real time HTML\n  compressor that will decrease our page\n  sizes my a pretty good chunk. Will\n  compressing the HTML hurt us in site\n  rankings?</p>\n</blockquote>\n\n<p>If it can be read on the client side without problem then it is perfectly fine. If you want to look up any of this I recommend anything referencing Matt Cutt\'s or from the following post.</p>\n\n<p><a href="http://www.sitepoint.com/forums/showthread.php?t=182915" rel="nofollow noreferrer">FAQ: Search Engine Optimisation</a></p>\n'}, {'answer_id': 30213963, 'author': 'East End', 'author_id': 4887099, 'author_profile': 'https://Stackoverflow.com/users/4887099', 'pm_score': 0, 'selected': False, 'text': '<p>First you check on the code. The code is validate w3c standards like <code>HTML &amp; CSS</code></p>\n'}]
['https://Stackoverflow.com/questions/47827', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1965/']