Quote:
Originally Posted by harvey
I'm very interested on the SEO thing you mention, can you explain (briefly and with no further details if you want) what do you mean?
|
Even without an overall code saving (and really unless you have reduced the total by at least 20%, take another look), the division of code between HTML that the search engines read and CSS, which if stored separately they do not, is an immediate advantage.
Let's say the original file was 25K and you end up with 16K of HTML and 4K of CSS. Your content remains the same, therefore the ratio of content to code now relates to 16K instead of 25K. That is an advantage you can push even further if you switch from foreground to background images and reduce the size of your HTML still more.
The second is that (although there are sometimes ways around it) old-style HTML is mostly coded in linear fashion. Given the most common layout with navigation on the top or left, search engines see your site in a quite different way than ideally you want. Some spiders may never even reach your content and headlines. But CSS allows you to place your content at the top of the HTML so it gets the prominence it deserves (and although this may not apply to many porn surfers, that also makes your site layout more "natural" for those who do not use mainstream browsers).