Some time ago, I personally found some information, is about optimization, to share with you:
Website code optimization is also an optimization of the site optimization measures, the code for the site optimization is very important. While HTML code is a language that programmers should be proficient in, the optimization of HTML code should be a skill that SEO professionals should be proficient in.
As a qualified seoer, we do not need to be proficient in HTML code, but we have to understand how the site code optimization, such as the content of our site is important content, which requires us to add value for important content, so as to get the attention of the search engine, At this point, we can tag the important content in HTML code, and after the important content is tagged by HTML code, search engine spiders know what content should be given higher weight when crawling your website.
Sometimes our site will often have some changes, each time the changes will persist some useless code, this useless code will affect the speed of the site, or even reduce the spider's goodwill to the site, reduce the overall score of the site, which is part of the code optimization, clear the site of useless code, Improve the speed of opening the page, increase the spider's friendliness to the site, thereby increasing the overall rating of the site, to achieve optimal results. So, in the site optimization site code How to optimize, below I will give you a detailed introduction.
1, H tag optimization
The optimization of the H tag in the site code is one of the code optimization, in the previous article I also introduced the use of H tags, today I explain to you how to optimize the H tag, h1-h6 tags are called h tags, H1 tags in the h tag is the best weight tag, Usually in the site each page only allow once H1 label, standing in the SEO optimization, we usually put the H1 tag on each page the most important content, such as my blog most important is the Harbin SEO keyword, so I will H1 label placed in Harbin SEO this title, Must not have the same page to appear multiple H1 label phenomenon, H1 tag in each page can only appear once, the other H tags can appear multiple times, but generally just with H1 tags, if not good at using H tag suggestions also do not place in the site, because in the site without H tags appear, Spiders will be the weight of the site to all the content, do not say that the weight of the focus on a certain content.
2. Nofollow Label
Webmaster tools can not detect links in the nofollow before there are a lot of people without morals to use the nofollow tag to exchange links, we all know that links can allow two of sites to transfer weight between each other, And in the link code to add nofollow is equivalent to tell the spider do not crawl this link, this will lead to your site will not get the weight of the other site transfer effect, because in the friendship link although we link each other's site will not spread the weight of its own site, But links over a certain number of sites will be scattered after the weight of the site, so, through the way nofollow can reach the effect of no limit to the number of links, because nofollow do not have to pass the weight for each other's website, so you can exchange a lot of links, Most of them are added in robots.txt nofollow to guide the spiders which pages are allowed to crawl the site, and which pages of the site are not allowed to crawl.
3. Title Tag
Usually in the site we all need to set the title for the site, some two development programs in the background of the site can set the title of the site, but for some of their own development of the site needs to be set in code, standing in the SEO perspective we usually add our site's main keywords in the title tag, To increase the site's matching, the title tag is very important for the site, so we do the site's code optimization must not ignore the site's title tag settings.
4. Keywords Label
Keywords tag and title tag is set together, if you use two times the development program, then you can set the title tag together with the keywords tag, keywords tag represents the keywords of the website.
5. Description Label
Description tags are usually used to fill in the description of the site, when we search for a keyword, we see the description of the site shown below the snapshot is set by the description tag, Some people think that description tags on the site's keyword ranking does not have much impact so do not set the site's description tag, in fact, we observe carefully can be found, If this keyword appears in the description below the snapshot shown when we search for a keyword, it will appear in red font.
Site optimization in the station must do a good job of the site code optimization measures.
6. Alt Tag
ALT tags are usually used to add pictures on the site, add your pictures are your own photos, then you do not tell the spider words spiders will not know what is the content of this picture, and the alt tag is to tell the spider our picture of what is the content, We just in the ALT tag in the most concise language to describe the picture information, the best picture content to be related to our site content, because the spider will not only include the content of the site, the same will be included in the site's pictures, so that the picture is now in the Baidu Gallery, and alt tag can let the picture Show now which categories of pictures.
Optimize Web site Optimization page code