Streamline code don't embarrass search engines

Source: Internet
Author: User
Keywords SEO

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Search engine Crawl page, not like people, from the page to look at the page, but from the page code to see! Right mouse button, view the source file, we can see the change page HTML code, this is the spider to read the content, from the beginning read to the end. It is also said that from the top to the bottom of the page, left to right reading, I think more scientific should be read from the front of the HTML code to the last!

Why thin code?

Spiders are reading code from top to bottom, and if you have a lot of code unrelated to the text, spiders first to read, Spiders Limited, may not have read the text, has been tired of leaving, in this case, not to mention ranked, you must know that the spider ability is limited, we do not embarrass spiders, with the most concise code, Let the body early embodiment, so that spiders successfully crawled.

How do I streamline my code?

1) Streamlined code generally speaking, our page uses Div, many people say with div in favor of SEO, this sentence I agree with, but use div than table ranking must be good, this is nonsense! Because the most important thing with DIV is to simplify the code, to help search engine crawl!

2 Extraneous Code External

For example, our CSS code, we should use CSS external, as well as some advertising code, special effects code are used JS external! It's OK to call in the code of the Web page, which greatly streamlines the page code.

3 Inside Page Header information

In the site's internal pages, such as the article page, channel page, in fact, the head information (LOGO, top ads, top search box), these pages for this article are irrelevant information, can be called out, so that your body in the code more forward. Of course you have to ensure that the basic navigation, such as return to the home page, the links to various columns, as well as the latest articles, related articles, hot articles, such as internal links to protect, but I think these code to be in the text below, the article page should first reflect the article title, content. The second is the related link information. This will greatly streamline the site code, in favor of the inside page in the long tail of the keyword competition!

4 redundant code generated by the program itself

Especially. NET program, will automatically many redundant garbage code, these code not only greatly reduce the speed of the Web page, but also let the spider tired to get down, spiders are simulated human behavior, once in our company's website has appeared, programmers write. NET, resulting in a large number of web pages of redundant code, At that time a careless did not pay attention, later led to this batch of pages not only slow, after being Baidu in search engine all delete, because a lot of redundant code, let this batch of pages appear page similarity problem, and lead to Baidu delete results, and then immediately resolved. So we must be very, very careful about these questions!

First summed up these 4 points, in short, say and in short, our web page code to be very concise, irrelevant content outside, the main content of the page ahead of time, related content lag, to understand the mission of each page. For example, for the article page, the above logo and other top information is redundant code, should be external as long as the principle to simplify the code.

Author: Dairenguan @ black Humor

Blog Address: http://www.dairenguang.com

This article address: http://www.dairenguang.com/note/20090720535.htm

All copyrights must be reproduced in the form of links to the author and original source and this statement.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.