Desert: Grasp the site's HTML code optimization principles

Source: Internet
Author: User

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

A lot of stationmaster make such mistake, think that only ie under the normal display of Web sites, then, that the code is completely correct, when the site rankings are not ideal, optimize the title, description, chain, outside the chain all efforts, or no improvement, this is why?

There are a lot of reasons, when you consider the most basic SEO optimization content, have you forgotten what? HTML code may be a lot of friends ignore, if the code in the wrong, then, in that code on the basis of no matter how much effort to optimize the site results may be put into the water!

1. Avoid redundant nested tags

The popularity of HTML code is due to its maneuverability, nesting code is very good, and this leads to a problem, when we are in Dreamweaver and other editors to modify a format, it will appear the original format will not be deleted, but simply apply tags, which caused the code is bloated.

2, the code not the longest, as long as the most simple

To improve the browsing speed of the page, it is necessary to reduce the volume of the paging file, use thin code as much as possible, reduce the number of bytes in the page, specific examples, when we want to let a certain of our own bold, can be a B or fervent tag, then, in the same is the bold effect of the premise, we'd better use B tag, Because fervent is 5 more characters than the B label.

3, discard the page design of table

Table has been the most popular web site production, but unlimited nesting, affecting the layout of the page, so that the page code is very bloated, and table in the label use, but also very embarrassed, of course, not to say completely discard table, here is to give up, The table table has a very strong design capability in terms of acquiescence.

4, CSS code is a good choice

CSS code garbage Behavior, we have said (see: Desert Talk: Web site CSS garbage behavior?), these are man-made intentionally or inadvertently caused, even so, we can not ignore the CSS format, external CSS code, greatly reduce the search engine index, but also reduce the volume of the page, And when we adjust the format of a page, do not need to modify each page, as long as the adjustment of the CSS file can be.

Some of the above can be as soon as possible to optimize the CSS style, of course, if your host support gzip compression, then, you can turn on gzip compression, then, after the opening of the gzip will be to a large extent the size of the compression page, the overall speed of the page is up.

CSS code in the garbage behavior, will affect the entire site optimization, then, we need to optimize the site's HTML code, no redundant code pages, not only can reduce the speed of the Web page, but not to damage the efficiency of the Web page, to improve the search engine rankings is also very helpful.

Article Source Webmaster Laboratory: http://www.fixbar.com (Webmaster Learning Exchange Group 63585373, welcome to join!)

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.