Tips for optimizing pages in Asp.net-making it easier for search engines to find your pages! In the later stages of the recently launched Project, the customer put forward an obvious requirement that the technical level should ensure the top rank of the baidu search engine without increasing the promotion cost.
In fact, this design involves the optimization techniques of search engines. From the previous successful cases, we can basically ensure that the customer's website or community themes are on the first three pages of Baidu search engine, excluding Baidu promotion links, the core is to cooperate with Baidu at a certain level. It is also extremely important to locate keywords in the search engine. In some industries, keywords are frequently used, for example, the real estate industry has basically all registered keywords, and we can do this service, but for a large number of ordinary customers, in reality, it is unacceptable to have a high promotion cost and it is difficult to see specific benefits in the short term. However, for some relatively unpopular industries, simple page optimization also achieves this effect.
The key issue lies in the title and meta tags of the page. In the era of no search engine, Meta Tags are only used to record the author and copyright information of the webpage. However, with the emergence of search engines, meta has a new meaning: it can provide a lot of basic information about the current page for search engines. Most website developers mainly pay attention to and optimize two tags that are very important to search engines:DescriptionTag: used to describe the summary information andKeywordsTag -- used to describe the keyword information of a webpage. Some search engines, such as Google, may use the content in the description tag as the summary information list of the page in the user's search results. However, not all search engines place so much emphasis on meta tags. Taking Baidu as an example, it does not pay much attention to the meta information of a page.
In the next few years, as search engines become more intelligent, meta tags will become increasingly low in search engines until they are completely removed. This is the trend of the times. With the deepening of Seo knowledge, more and more people have learned how to use keywords and description tags in meta tags to pile up useless keywords, which will inevitably affect the content matching quality of search engines, this affects the development of search engines.
The current development trend is so that we can be flexible. Although meta tags will play less and less roles on Google and Baidu, at this stage, they will play a significant role, we can use it as needed.
Parse Meta and title
META keywords: keyword and description
1 <meta name = "keywords" content = "keyword 1, keyword 2, keyword 3, keyword phrase, and so on.">
2
Keywords are separated by commas (,). We recommend that you use commas (,) instead of commas (,) in the English format, which accounts for a small amount of data and is easy to display and recognize when the page is displayed.
1 <meta name = "Description" content = "VANKE Real Estate China Real Estate logo brand is easy to China">
2
Description in Meta is mainly used to describe the main content of a page. The length should not exceed 80 characters, and the description should be as concise and clear as possible to persuade users to click on your page. Too long words are useless because they are truncated by search engines.
Meta Tags are no longer used as the deciding factor for a search engine to measure the weight of a page. Even if a page does not have a meta tag, the search engine can also determine the weight of this page based on the keyword density (keyword determined by the searcher) and the external import link of this page. The search engine automatically extracts the first few sentences on the page and displays the description on the index page.
The title is relatively simple and will not be introduced. It shows the dynamic settings:
1aspx page
2 3 <title ID = "testtitle" runat = "server"> from here, Juyi Chinese taste life begins. </title>
4 Modify:
1 // corresponding element: system. Web. UI. htmlcontrols. htmltitle
2this. testtitle. Text = "VANKE Real Estate China real estate brand ";
3 // set the title to show the effect on the top of the page
4
5
The following figure shows how to modify the content of the title tag in the background:
Meta on the page: the keyword and description of Meta in the header of China Real Estate Information Network
1 2 <meta http-equiv = "content-language" content = "ZH-CN">
3 <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
4 <meta name = "keywords" content = "Real Estate, real estate development, real estate investment, housing construction, housing prices, statistical data, statistical information, house buying, renting, owner Forum, owner club, community, residential, new house, real estate, house, online house exhibition, second-hand house, land, real estate marketing, real estate finance, enterprise management, Real Estate Assessment, office buildings, shops, decoration, home, building materials, furniture, Real Estate News, industry elites, Real Estate News ">
5 <meta name = "Description" content = "中, a specialized Chinese real estate website, provides the most comprehensive and timely real estate news content, it is the most popular professional website and real estate information library recognized by domestic real estate media and netizens outside the industry. ">
6 <title> China Real Estate Information Network </title>
7 Similarly, Meta is changed to the server runat = "server" background call for dynamic modification like title; another dynamic add meta:
1 // page title
2 Title = "this is a title and meta test page .";
3
4 // encode/content type
5 htmlmeta encode = new htmlmeta ();
6 encode. httpequiv = "Content-Type ";
7 encode. content = "text/html; charset = UTF-8 ";
8 page. header. Controls. Add (encode );
9
10 // Language
11 htmlmeta lang = new htmlmeta ();
12 Lang. httpequiv = "content-language ";
13 Lang. content = "ZH-CN ";
14 page. header. Controls. Add (Lang );
15
16 // description
17 htmlmeta DESC = new htmlmeta ();
18 DESC. Name = "Description ";
19 DESC. content = "test the meta controls ";
20 page. header. Controls. Add (DESC );
21
22 // keyword
23 htmlmeta KEYWORDS = new htmlmeta ();
24 keywords. Name = "keywords ";
25 keywords. content = "title, Meta, test, page ";
26 page. header. Controls. Add (keywords );
27
28 // link/CSS
29 htmllink csslink = new htmllink ();
30 csslink. href = "masterpage.css ";
31 csslink. Attributes. Add ("rel", "stylesheet ");
32 csslink. Attributes. Add ("type", "text/CSS ");
33 page. header. Controls. Add (csslink );
The above operation Adds settings in the background in another way to see the effect:
Of course, the above is only a small operation skill, and it is easy to ignore this operation.