Web code optimization Mahayana Canon ten years of grinding a sword of dry goods!

Source: Internet
Author: User

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

Today, here to share many years of the summary of the Web code optimization canon. Why do you say ten years? Because I have made the Web page has been more than 10 years, the station optimization has also done for several years, just accumulated these experiences. Today, I came to a "handsome boy scattered Flowers", please pick up!

First, the use of good HTML tags to redefine, thin code!

HTML tag redefinition is more important than class to save page code. The common tags in HTML are span, U, I, Sgt, big, cite, etc., we can all use in the page, and then redefine the style in the CSS file. For example: If you need three div to achieve the effect, with I, span, p three tags can be very simple to achieve, do not use class and Div.

Second, the use of labels to make the search engine easy to understand.

H1 can only be used for page main title, a page can only have one, and some templates default to the logo link or text link set to H1, which is very wrong, H1 should only give the title plain text; H2 for the secondary level of important headings; H3 can be used for article titles in list pages. H2 and H3 according to the need to use the right amount, not too much.

H tag can follow P or ul,p is a perfect description of H, UL is the call related articles, both of which help search engine understanding.

In the article content page, fervent is used for paragraph headings, paragraphs with p, so that not only looks more beautiful, the search engine will understand.

Third, want the style is beautiful and the code is concise, please use good background.

If you want HTML elements to have a great effect and the code is concise, the background picture of the HTML element defined in the CSS is preferred. Because background is defined in a CSS file, you save a lot of letters in the IMG code you use in the Web page directly. Our homepage large map and some important hyperlinks are decorated by background, not only the style is beautiful, and the code can be reduced by about 20%.

Four, according to content relevance, divided div block

The page is divided into large chunks and then subdivided. SEO Surprise website page by the top, navigation, left, right, bottom, divided into different large div. Each large div can then be subdivided according to relevance. Such a Web page, the search engine on the page level is very easy to understand, the correct division of logical blocks, is the code optimization is a very critical step!

V. Avoid weaknesses and utilize the IFRAME and IMG images

General SEO Tutorials are said to avoid using IFRAME, because it is not conducive to site optimization. But the IFRAME has a benefit, it refers to another page, can be downloaded separately, does not affect the download speed of this page. Therefore, if your site has a large carousel map or flash, you can put it into the iframe, conducive to speed up.

IMG Images also have magical uses: we do Web optimization to avoid similar pages, reduce sample text, but some text is essential. This time you can let the IMG image play, the text into a picture, so no matter how many words you have, that article is a composition, the HTML code is only a brief IMG code, very concise!

Finally, to remind you that the Web page link address is best to use absolute path, to avoid mistaken by other domain name resolution, resulting in a large number of copy pages. Many students have had such problems, not to regret.

OK, seo surprise everyone to share here, if you can master the above several main principles, then you will only make the code is concise, beautiful style, search engine easy to understand the page! If you have any idea where you can contact the others, I would like to share my experience with you. Improve the level of website optimization together.

This article by the SEO Surprise (http://www.seoqibing.com) starting A5, reprint please keep information!

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.