??????? One??? ? Document Type (DOCTYPE)
??????? XHTML1.0 has three kinds of doctype:
??????? 1. Transition type (Transitional)
??????? <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
??????? 2, strict type (Strict)
??????? <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
??????? 3. Frame type (Frameset)
??????? <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 frameset//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" >
??????? Second, namespace (xmlns)
??????? ??????? Third, the Declaration language Code (charset)
???????? 1. Chinese Simplified:
??????? <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
??????? 2. Chinese Traditional
??????? <meta http-equiv= "Content-type" content= "text/html; Charset=big5 "/>
??????? 3. English
??????? <meta http-equiv= "Content-type" content= "text/html; Charset=en "/>
??????? 4. Chinese and English (international)
??????? <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
??????? 5. Western Europe
??????? <meta http-equiv= "Content-type" content= "text/html; Charset=iso-8859-1 ">
??????? 6. Arabic
??????? <meta http-equiv= "Content-type" content= "text/html; charset=asmo-708 ">
??????? 7. Central Europe
??????? <meta http-equiv= "Content-type" content= "text/html; Charset=iso-8859-2 ">
??????? Iv. Title Tag
??????? <title> East Building New _ Shanghai SEO industry professional seo company Shanghai seo| search Engine Optimization | SEO company </title>
??????? 1. First keyword
??????? Must be the main content of the page, such as "website optimization page", should write "website optimization"
??????? 2. Noun phrases
??????? Must be introduced in the preceding sentence with the keyword of the noun phrase, the above examples exist "SEO", "Shanghai seo", "seo Company", "Shanghai SEO Company", "Shanghai SEO Industry", "SEO professional", "Professional seo", "Professional seo Company", "Shanghai Company", " Shanghai Professional SEO Company "and so many key words, pay attention to try not to use the", "," Ah "," on "and so on can not form keywords, reason: wasting resources
??????? 3. Other key words
??????? The page text does not have the keyword not to put on above
??????? 4. Symbols
??????? The symbol "_" should not be written as "-" (Chinese state), can be written as "-" (English state); You can use "," instead of "," (Chinese state).
??????? 5. Number of words
??????? Keyword four--six words, phrase + the first keyword should not exceed 39 characters (19 words within the appropriate), the total number should not exceed 80 characters (40 Chinese characters), more than 39 characters of the part will not be the search engine display, more than 80 characters of the department will not be indexed by the search engine, More than a portion of the site rankings have an impact.
??????? 6. Other
??????? Do not use "/>" at the end, should write ">" Directly
??????? <meta name= "keywords" content= "search engine optimization, seo" >
??????? 1. Number of words
??????? The total number should not exceed 100 characters (50 Chinese characters)
??????? 2. Key words
??????? Keywords do not overlap, "packaging machinery, packaging design, food packaging, packaging companies, packaging users, packaging information, packaging orders, packaging enterprises, packaging News, packaging information" should be replaced by "packaging, design, food, companies, enterprises, users, information, machinery, orders, news, and information", sometimes in order to increase relevance, You can add a few keywords such as "packaging machinery, packaging design" to increase relevance.
??????? 3. Symbols
??????? Symbols need to be "," (in English state) instead of "," (Chinese state)
??????? 4. Other
??????? Do not use "/>" at the end, should write ">" Directly
??????? <meta name= "description" content= "East building is a professional SEO company in Shanghai area, mainly engaged in search engine optimization (SEO), website optimization, user experience Optimization (UEO), marketing type? Website ConstructionAs well as related SEO consulting and training Business ">
??????? 1. Number of words
??????? Do not exceed 200 characters (100 Chinese characters) and more than 152 characters (76 Chinese characters) will not be displayed by the search engine.
??????? 2. Symbols
??????? Symbols need to use "(", ")" (English state) instead of "(", ")". Cause: The number of characters wasted.
??????? <meta name= "Copyright" content= "East Building Xin Sheng (021-seo.com) All rights reserved" >
??????? 1. Key words
??????? Try to include keywords and be able to represent unique attributes.
??????? 2. Number of words
??????? 28 characters (14 Chinese characters) can be within, such as "Shanghai East Building Xin Sheng Network Technology Co., Ltd." can.
??????? 3. Symbols
??????? It is not recommended to use the Chinese state of conformance, because the Chinese characters generally occupy two characters, wasting a character.
??????? <meta name= "Author" content= "Dong Building xin Sheng" >
??????? It is recommended not to exceed 12 characters (6 Chinese characters) and 4-8 characters (2-4 Chinese characters) for best.
??????? V. Cascading style sheets (CSS) calls
??????? <link href= "Http://www.021-seo.com/img/main.css" type= "Text/css" rel= "stylesheet" >
??????? Try to use only one. css file, with an absolute address.
??????? Six, scripting language (JS) call
??????? <script src= "Http://www.021-seo.com/JS/VIP.js" type= "Text/javascript" ></script>
??????? Same cascading style sheet (CSS) call
??????? Vii. other code try not to use
??????? In particular, it is noted that:
??????? 1. Write the CSS code directly on the head
??????? 2, the JS code directly written in the head
??????? 3, <meta http-equiv= "Refresh" content= "5;url=http://www.021-seo.com" >
??????? Especially note: Do not use Refresh to enter the homepage.
??????? Eight, to <table>
??????? The artist uses the DIV+CSS model as much as possible, rather than the traditional table, because there are many table tags, and the search engine can read fewer tags.
??????? Nine, label case to conform to the specification
??????? In particular, be careful not to write the following labels in uppercase
??????? 1. <title></title>
??????? 2. <meta>
??????? 3. <body>
??????? 4. <a>
??????? 5.
??????? 6,
??????? 7. <strong></strong>
??????? 8.
??????? Ten, double label do not forget to close the label
??????? Xi. label nesting should be reasonable
??????? <div>??????? 12, special characters with code identification
??????? such as: "?" in the copyright symbol with "?" ;“? "Registered trademarks"? Said.
??????? 13. Link label (<a>)
???????? <a href= "http://www.021-seo.com/baozhuang/index.html" target= "_blank" title= "East building New & #10; Shanghai SEO Training channel > Shanghai SEO Training </a>
??????? 1. NewLine characters
??????? If you want to annotate multiple lines of display, you can use the & #10; As line break
??????? 2. Keywords Word count
??????? Recommended no more than 36 characters (18 Chinese characters)
??????? 3. Arrangement principle
??????? Unique keyword put forward, repeat the keyword as far as possible to rely on the back
??????? 4. Other
??????? Try not to use the ",", "good", "and so on" and so on, the search engine database is not included in the default word
??????? 14.ImageLabel ()
???????
???????? XV, Flash tags (<object></object>)
??????? Add <!--Flash ads before tags start: April 7, 2009 to 10th Lai Wah International Color Box exhibition will be held in Shanghai New International Exhibition Center--
??????? Add <!--Flash ad end after label
??????? 1, do not appear in the label "" (Space), "--", "! "such as Destruction <!----> label characters
??????? 2, the number of words to indicate the general content of the flash is appropriate, not to add flash not to express the text, will be sentenced to cheating.
??????? 16. Frame Label (<frameset></frameset>)
??????? <frameset rows= "80,*" >
???????? <noframes><body> Body Content </body></noframes>
??????? <frame name= "Top" src= "http://www.021-seo.com/top.htm" >
? ?? ? <frame name= "Bottom" src= "http://www.021-seo.com/bottom.htm" >
??????? </frameset>
??????? 17. CSS Code
??????? 1, such as:
??????? H1 {
? ?? ?? ?? ?? ? font-size:16px;
? ?? ?? ?? ?? ? Color: #0000FF;
? ?? ?? ?? ?? ? Text-align:left;
??????? }
??????? p {
? ?? ?? ?? ?? ? font-size:18px;
? ?? ?? ?? ?? ? Color: #0000FF;
? ?? ?? ?? ?? ? Text-align:left;
???????? }
??????? Rewritten as
??????? h1,p{
? ?? ?? ?? ?? ? font-size:18px;
? ?? ?? ?? ?? ? Color: #0000FF;
? ?? ?? ?? ?? ? Text-align:left;
??????? }
??????? 2, again such as: "margin:0px 0px 0px 0px;" Change to "margin:0px;"
SEO HTML code optimization