Common <meta>

Source: Internet
Author: User
Tags home screen

Transferred from: http://segmentfault.com/a/1190000002407912

- -<meta> tags : http://www.w3school.com.cn/tags/tag_meta.asp

SEO optimization

page Keywords , each page should have a unique set of keywords that describe the content of the page, separated by commas.
Use descriptive and Representative keywords and phrases that people may search for and accurately describe the information provided on the page. Tag content is too short, the search engine may not think of the content as relevant. Additional tokens should not exceed 874 characters. https://msdn.microsoft.com/zh-cn/library/ff723967 (v=expression.40). aspx

<name= "keywords"  content= "Your tags"/>

page Description , each page should have a no more than 150 characters and can accurately reflect the content of the page description tag.

<name= "description"  content= "words"/>

search Engine Indexing method , Robotterms is a set of values separated by commas (,), usually have the following values: None,noindex,nofollow,all,index and follow. Make sure that the nofollow and Noindex property values are used correctly.

<name= "Robots"  content= "Index,follow"/>  <!--all    : The file will be retrieved and the link on the page can be queried;    None: The file will not be retrieved and the link on the page cannot be queried;    index: The file will be retrieved;    Follow: The link on the page can be queried;    noindex: The file will not be    retrieved;

page redirection and refresh : The number within the content represents the time (in seconds) that is refreshed after a few minutes. If the URL is added, it is redirected to the specified Web page (search engines can be automatically detected and easily punished by the engine as misleading).

<http-equiv= "Refresh"  content= "0;url="/>

Other

<Metaname= "Author"content= "Author name" /> <!--Define page Authors -<Metaname= "Google"content= "Index,follow" /><Metaname= "Googlebot"content= "Index,follow" /><Metaname= "Verify"content= "Index,follow" />
Mobile Devices

viewport: Can optimize the display of mobile browser. if it is not a responsive web site, do not use Initial-scale or disable scaling .
Most of the 4.7-5-inch devices have a viewport width of 360px;5.5 inch set to 400px;iphone6 set to 375px;ipone6 plus set to 414px.

<name= "Viewport"  content= "Width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no "/><!--  ' width=device-width ' will cause IPhone 5 Black  When you open a page in WebApp full-screen mode after adding to the home screen 
    1. Width: widths (values/device-width) (range from 200 to 10,000, default to 980 pixels)
    2. Height: Altitude (Value/device-height) (range from 223 to 10,000)
    3. Initial-scale: Initial zoom ratio (range from >0 to 10)
    4. Minimum-scale: The minimum scale to allow the user to zoom
    5. Maximum-scale: Allows the user to zoom to the maximum scale
    6. User-scalable: Whether the user can manually indent (no,yes)

Note that many people use initial-scale=1 to non-responsive websites, which makes the site render at 100% width, and the user needs to manually move the page or zoom. If you use User-scalable=no or maximum-scale=1 with initial-scale=1 at the same time, users will not be able to zoom in/out of the page to see all the content.

WebApp Full Screen mode : Fake app, offline app.

<name= "apple-mobile-web-app-capable"  content= "Yes"/ ><!-- -

Hide Status bar/Set status bar color : Only takes effect when webapp full screen mode is turned on. The content value is default | Black | Black-translucent.

<name= "Apple-mobile-web-app-status-bar-style"  content= " Black-translucent "/>

Title after adding to the main screen

<name= "Apple-mobile-web-app-title"  content= "title" >

Ignore numbers automatically recognized as phone numbers

<content= "Telephone=no"  name= "format-detection"/> 

Ignore recognition mailboxes

<content= "Email=no"  name= "Format-detection"/ >

Add Smart App banner Smart app Banner: Tell the browser the app that corresponds to this website and display the download Banner on the page.

<name= "Apple-itunes-app"  content= "App-id=myappstoreid, Affiliate-data=myaffiliatedata, App-argument=myurl ">

Other

<!--optimized for handheld devices, mainly for older browsers that do not recognize viewport, such as BlackBerry -<Metaname= "handheldfriendly"content= "true"><!--Microsoft's old-fashioned browser -<Metaname= "Mobileoptimized"content= " the"><!--UC Force vertical screen -<Metaname= "Screen-orientation"content= "Portrait"><!--QQ Forced vertical screen -<Metaname= "X5-orientation"content= "Portrait"><!--UC Force full screen -<Metaname= "Full-screen"content= "Yes"><!--QQ Mandatory Fullscreen -<Metaname= "X5-fullscreen"content= "true"><!--UC Application Mode -<Metaname= "Browsermode"content= "Application"><!--QQ Application Mode -<Metaname= "X5-page-mode"content= "App"><!--windows Phone clicks No highlight -<Metaname= "Msapplication-tap-highlight"content= "No">
Web Related

Declaration Code

<charset/>

Use the latest version of IE and Chrome first

<Metahttp-equiv= "X-ua-compatible"content= "Ie=edge,chrome=1" /><!--about X-ua-compatible -<Metahttp-equiv= "X-ua-compatible"content= "Ie=6" ><!--using IE6 -<Metahttp-equiv= "X-ua-compatible"content= "Ie=7" ><!--using IE7 -<Metahttp-equiv= "X-ua-compatible"content= "Ie=8" ><!--using ie8–>

Browser Kernel control : Many domestic browsers are dual-core (WebKit and Trident), WebKit kernel high-speed browsing, IE core-compatible Web pages and the old version of the site. Web sites that add Meta tags can control what kernel rendering the browser chooses.

<name= "renderer"  content= "Webkit|ie-comp|ie-stand"> 

The default kernel mode for dual-core browsers is as follows:
1. Sogou high-speed browser, QQ browser: IE core (compatibility mode)
2.360 Speed Browser, roaming browser: WebKit kernel (fast mode)

prevents browsers from accessing page content from the local computer's cache : This setting allows visitors to browse offline.

<http-equiv= "Pragma"  content= "No-cache"> 

Windows 8

<name= "Msapplication-tilecolor " content= "#000"/>  <!---<name = " Msapplication-tileimage "  content=" icon.png "/><!--    -

site adaptation : Mainly used for pc-mobile phone page of the corresponding relationship.

<name= "mobile-agent"content= "FORMAT=[WML|XHTML|HTML5]; Url=url"  ><!-- -

transcoding declaration : Using Baidu to open the Web page may be transcoded (such as stickers), to avoid transcoding can add the following meta.

<http-equiv= "Cache-control"  content= "No-siteapp"  />

Common <meta>

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.