This post about HTML website design code optimization has been circulating on the Internet for a long time, but it is often mentioned. Here is another recommendation for friends who do SEO optimization. Personally, I think website optimization includes content, structure, code, and links. Those who are familiar with website optimization believe they can list many items. Here is just a list of the basic knowledge of HTML code optimization for your reference. The following code is only listed for explanation, not all of them need to be used, but according to the situation of your own website
Note: The list in the tag area is some basic HTML tags, and the order in which these tags appear can be changed.
Let's talk step by step.
Of line 1
This tag is used for HTML code annotation. Many people will write keywords here. This form of annotation will not be displayed in the browser, but can be read by search engines. So sometimes this tag will become a form of cheating. Don't use this tag too much to indicate your keywords, otherwise if the search engine thinks you are cheating, it will be a disaster.
Line 6. This is quite important
Words here are valuable! For Baidu SEO friends, you must remember that this tag may be the key point of whether you can really rank high, and this key point can not be ignored. The title mainly pays attention to your words. If you are a garbage dump, it doesn't matter to stack keywords. If you want to be a regular site, please treat it correctly and write it in a standard way. Don't stack keywords. Just keep your main words appearing here three times. Too many words are not good for you, nor for ranking. GG doesn't like long titles, and Baidu occasionally mentions that it only wants your keywords to appear in the first 20 words of the title. After clarifying these, it is also important to note that your main keywords should be as high as possible in the title!
Line 7
The use of this is getting lower and lower, but no matter how low it is, it has weight. As long as you take it seriously, the words here are effective. Two points should be noted here:
First, most people will choose to write no more than three keywords here. Some people just write one keyword directly, which is good. Every tag has weight. The less content you emphasize, the higher the weight will be. So don't write too many, or let the search engine judge your page keywords by itself.
Second, almost all SEO professionals will tell you to try to write different keywords on each page to avoid the danger of being considered as duplicate pages.
Line 8
This is mainly for the index results appearing in the search results. The index results are the summary content under the title when Baidu searches your site. This is a guide to the page, which is used to explain the main content of the page. Of course, the current weight is not high. Like the keywords tag, it is not paid much attention. And now because the search engine robot is becoming more and more intelligent, the summary content of the entire page has basically appeared in its index results at will, and the search engine will display different indexes according to the content you search. If you want to write a description, you should write it carefully. Many people use it to control the index display of search engines, because the more specific the website description is, the more likely it is that the content in this tag will appear in the index.
Line 13
The tag of page content title is the most important tag of a page, and also the main basis for search engines to locate this page. If your page keywords do not appear in your tag, it is really a great loss. The weight here is more important than other tags in the area. In HTML code, it is second only to
If the tag doesn't appear, I don't know how search engines will understand a page. It's really a bad thing for SEO. Therefore, it is very important to take your page seriously. It is important to emphasize that this tag should not appear too many times on one page, just once. The reason is simple. Too many will make others unable to determine which of your pages is the most important. I don't think there is much difference between being unable to determine the key points and not having this tag. Therefore, it is better to appear only once for the purpose of clear explanation.
Line 14
The tag of page relevance title is the same and reasonable, but its weight is relatively low. If your page does not have this tag, it is basically of equal importance to the page. What you include here is the content related to long tail keywords. For example, if you make several keywords on your page, the subject should appear in it, then other words and words you want to develop can appear in it, which is a reasonable arrangement. The importance of these tags is decreasing in turn, and their weight on a page is getting lower and lower.
Line 19
I think many people know that this tag has a very clear function, which is to specify the caption of an image so that search engines can know what the image is about. For example, if your picture is "Liu Yifei", the "picture description" in your alt="picture description" should be a word or sentence related to "Liu Yifei". Of course, this is also helpful for you to show a higher ranking in the image search results, but now Baidu basically takes the page title as an element of image ranking. Of course, if your alt tag is well done, it will increase your image matching. In the future, I may write an analytical article on the research of picture descriptions, because there will also be a title tag in the linked pictures. It is necessary to study who is important between title and alt.
Link words in line 20
This is a link description, and it is also a key SEO point for page links. The "link word" here is quite important. If you exchange links with others, the writing of your word is a decisive factor for the quality of the external chain. " It is suggested that you should write your own keywords. If you think it is really bad or not, you must show your keywords in the "link description". Otherwise, for ranking, your links will not do much good. This is also called "Google Bomb" in SEO terminology, which is to use many sites to link to a website at the same time, and then write a word for all "link words" - "Liu Yifei". Google will soon regard this site as the most authoritative site for the word "Liu Yifei", Even if the page linked by those sites does not contain any content related to "Liu Yifei", the site will rank well in the word "Liu Yifei". However, Google has adjusted the algorithm, but it is certainly useful to link in this way. You must take your links seriously. Another key point is the other party's link. If it is called by JS, you will not get any weight from it. Because the search engine will not read the content in JS, it is recommended that you do a good job of linking, instead of linking your site with nothing. For example, the friendship links in Baidu Space are called by JS files, so you have no weight for the friendship links in Baidu Space. See the HTML code for details. Normally, you can't find your website address on a page When it appears in the tag, it is basically an invalid link.
Line 21 Key Key Words Emphasis
This label is only second in importance. Many people have told me this, and I basically agree with it. It is certain that it has a higher weight than labels such as,, and. So if your page has very important words and you want to emphasize it, first select this tag, and then select the tags of,,, and so on for the relatively unimportant words. Of course, don't use too much. If you use too much without focus, you are useless.
Line 26 Key words of copyright
Why should I write this? Because the weight is getting higher and higher, keywords appear at the bottom copyright part and close to the copyright part, which is a trick. Emphasizing your keywords here is to make your keyword layout more reasonable, rather than the keywords appearing in the head. The middle is emphasized many times, but there is no related content at the bottom. Is this word questionable on this page?
Finally, if you have any ideas, please reply. If you have any mistakes, please help me point them out and improve together!
This article was published by Beijing Website Construction Company Shangpin China //ihucc.com/