Saturday, October 15, 2011

Zhang Jianfei: SEOER must know the standard code optimization

a good site structure can get a better search engine of all ages, many SEOER the site structure to a tree form, and think that this is a good site structure of the well site or a structure optimization , but in fact not the case specifications also are site code optimization areas. Code optimization, however, often been to ignore the relentless SEOER or lost. In Zhang Jianfei to talk about their views on code optimization.

one, shrinking code

web access faster the smaller the size, it is well known, the search engine is the same for the same reason. Access faster, then the search engine is not often to do, of course, is essential to have something to feed the spider web. So we should be how to optimize the code it?

first code to have a clear separation of the classification of the code, the benefits of doing two things: First, reduce the page to access the HTTP request when; first two points, to facilitate the maintenance of the site.

abandon the table, followed by selection of DIV + CSS, why do this? Because the table the user experience, access speed is slow, not conducive to the maintenance and are difficult to verify through the W3C Validator. On the contrary, DIV + CSS on a good solution to these problems. We can test, the same number of lines of code or the same effect with a table and make a DIV + CSS, respectively, look both access speed.

Second, the code format, hierarchical structure

code on it, what can toss out a pattern, that is not HTML tags, you might say . No matter how engaging website does eventually show into HTML tags, HTML tags, but also requires a hierarchical structure to specification. Take the meta tags for instance, many sites of the order of a few meta tags are different, do not say anything else, owners say they want to view this information, each page to see when the order is different, is not it seeing things it? it also requires specification of HTML tags, the following is a typical hierarchical structure of the HTML tag code:

Sample code standard

we can seen from the above code, specification, clarity, confusion is not much better than the code. The code above the code as an external CSS style sheet calls, reducing HTTP requests, improved page loading speed. This is not the best approach it? The answer is: no. Should we not found this place a lot of blank spaces you, out of thin air to increase the number of useless stuff, to increase the page size. So how do we do it is to have the tools to get rid of these spare characters to form a code-intensive pages (remember to use the former, save a copy, as our own maintenance when used).

Summary: SEO requires careful analysis, try to figure out every detail, details decide success or failure. Tip: The best website template or in the development process, when you do a good job early, to avoid multiple changes. Article by Zhang Jianfei (www.semanswer.net) original, reproduced, please sign and respect the original!

No comments:

Post a Comment