On optimization of SEO Web page code

Source: Internet
Author: User

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

In SEO optimization, we not only to the keyword optimization, code optimization is also essential.

Here are some personal insights, hoping to help each other.

Reasons for Web page code optimization:

(1) Can reduce the volume of web pages, speed up the download speed of the Web page;

(2) Improve the speed and accuracy of spiders ' grasping information

(3) Help to reduce the error of the code, improve the page on the friendliness of the spider

(4) Facilitate management personnel maintenance, improve work efficiency

(5) Reduce the noise of the Web page, highlighting the theme of the page

So how do we optimize the Web page code?

(1) In the Web page there are redundant code, we have to learn to clear the garbage code. The common Spam code in Web pages is characters, empty tag blocks, redundant nested tags, unnecessary annotations, and so on. For example: There are a lot of characters at the beginning or end of each line, we need to remove these redundant code, and there are blank lines. There is a quick and easy way to clear blank lines: You can go to HTML code editing mode and press CTRL + A to select all code to use the key shift deletion.

(2) using div typesetting. div style can be streamlined a lot of styles, the design of the page template part out of a separate folder, for the site maintenance and changes are quite convenient. And can improve the browsing speed of the page, increase the friendliness of customer visit. In the layout of CSS, you should have good naming habits, appropriate code comments.

(3) Refer to JS file, not the more special effects of the page (first CSS after JS).

(4) For the image optimization, the site's picture is not the more the better, but to have pictures, to improve the image of the Alt attribute, preferably with the target keyword description.

(5) For the wrong code, we can use the 3w tool to check.

For the optimization of the page label, H1 is defined as the body title, the first level title, which is unique. H2 is a level two title, mainly in the text of the article title. H3 is a three-level title, generally appear in the sidebar of the page, H4-h6 generally appear less. It is noteworthy that the difference between the page and the key words play an emphasis on the role, but only the role of bold.

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.