How to do SEO in-station code optimization

Source: Internet
Author: User

How to do SEO station internal generation Code Optimized

SEO optimization work in the most basic is to see the code, if you do not understand the page code, such an SEO is a cripple, this is not exaggerated, we optimize the page code when you need to pay attention to a few points.

One, Space , the space in the Web page station 15%, space is also a character, space characters most often appear at the beginning and end of the code, there is a blank line.
Workaround: Place the code in Dreamweaver with all the selected code and press Shift+tab to align left.

Second, font bold label . For example,:<b> and <strony> both are bold fonts but <strong> are 5 more characters than <b>. To use a simple label, reduce the number of requests, speed up the opening of the page!

third, do not use the table design page . Now basically eliminated the use of the form in the Web page, because he is not as open as Div, the table is a elimination of things.

iv. Description ofALT image . To all the pictures on the site with alt text description, because the picture spider can not understand the picture content, you want to add a description of the picture, which is often made by SEO small mistakes.

Five,CSS optimization . The CSS style is written in the head header tag of the webpage, if the page volume is large, you can write the CSS in the file to take the way to call.

VI.CSS code abbreviations . There are many attributes that can be abbreviated in CSS, including margin,padding,border,font,background and color values.

Seven, code compression . When you decide to deploy a Web site project to the Web, you'll want to consider compressing the CSS, commenting out comments and spaces to make the page load faster. Compress your code, you can use some tools, such as Yui Compressor, use it to streamline the CSS code, reduce file size, to achieve higher loading speed.

Eight,JS file Call . Use the internal JS file call, at the same time JS put to the last </body> before, you can speed up the page to open!

after optimization, with the results of Baidu Webmaster Tools testing (see the following illustration) . We can refer to it for a moment!


This article from the "INFO" blog, reproduced please contact the author!

How to do SEO in-station code optimization

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.