SEO tips: How to make your website page lighter

Source: Internet
Author: User

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

Now the search engine for the user experience more and more attention, which requires us not only to do their own website content construction, the construction of the chain, but also to include many other aspects of the treatment. Directly related to the visitors experience an important aspect is the speed of the Web page, we can choose a better server, but also to our site's own code optimization.

Web page weight loss is also an important work in web design, but also a part of our SEO optimization. When we open the source code of the site, see a lot of empty lines, line breaks, useless table is also more depressed, this is because we use a variety of editors to write out the HTML to facilitate the author to see the program so that all use a lot of space and and newline, Like FP2000, this software produces quite a lot of space to make your Web page empty.

Of course, there are some things that can lose weight are man-made, such as you write code when the attributes of multiple HTML to a pair of image, and these attributes are duplicated, it will make your page fat. To solve this problem, it can be easily:

First: Use HTML Web page to lose weight software

We can use some software to compress our web pages, such as: the use of some specific HTML software to lose weight on HTML pages, this method is very easy and effective, but for example, artificial redundant HTML code can not be reduced, can only lose the extra Space and tab.

Second: Design Weight Loss method

Design weight loss, this is for artists or web-making friends, different people, for the use of web code have their own likes and styles, may be a final front of the same site, 2 people write out the number of code, CSS or Web page file size is different, that is to design the Web page, Especially with a software to design the Web page you need to use a good operating habits and the right way.

For example: When you have text or a picture in a form that needs to be centered, using a cell to center is less code than using the center of the text; If most of the links in your page are open in a new window, you can set the default opening of the page to a new window, which will reduce the number of open new windows.

Third: CSS style weight loss:

Web page production should be customized with CSS to unify the font style to standardize the code, avoid a large number of fonts and formatting tags such as < font

Size=xx></font> <color=xx>
<style type= "Text/css" >
<!--
H2 {font-family: "Song body"; font-size:12pt; color: #333366;
Background-color: #FFCCCC; Font-weight:bold}
H1 {font-family: "Arial"; font-size:12pt color: #993300}-->
</style>
Through the above settings, the text of the font, size, color, background color, such as unified, do not have each paragraph of text to define the format, thereby reducing a large number of duplicate labels.

In addition, when we lose weight on CSS, we should put CSS code as much as possible into the external file of the Web page, using <link rel= "Stylesheet" type= "Text/css" href= "/css/styles.css" form to call, but also a way to lose weight on the web.

Four: JS weight loss

For Web pages that use JavaScript technology, there is a lot of JavaScript code in the beginning, and JS optimization is worth noting in two aspects.

1. Put the JS script content to the end of the page

Place most, if not all, JavaScript code at the end of the page. Not only does this not affect the JavaScript code, but

Can not affect the search engine spiders use the fastest time to crawl to the actual content;

2. Transfer the JS code to the Web page external file with. js suffix. This can also reduce the code for the Web page.

With the search engine on the user experience more and more attention, let the site quickly show to visitors also become one of our work to optimize, and we also know that Google has been the speed of the Web page to include a factor in SEO rankings. Do not underestimate the work of the Web page weight loss, perhaps it will be a favorable aspect of our competition against competitors.

This article is written by Arden SEO Training organization Wang Shaowei, http://bbs.aerding.org reprint please keep the source

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.