<span id="Label3"></p>< meta > Elemental overview<p class="p"><p class="p">The tag provides metadata about the HTML Document. The metadata is not displayed on the page, but is readable for the MACHINE. It can be used in browsers (how to display content or reload pages), search engines (keywords), or other web Services. --w3school</p></p><p class="p"><p class="p">Required Attributes</p></p> <table> <tbody> <tr> <td valign="center" width="192"><p>Property</p></td> <td valign="center" width="192"><p>Value</p></td> <td valign="center" width="192"><p>Describe</p></td> </tr> <tr> <td valign="center" width="192"><p>Content</p></td> <td valign="center" width="192"><p>Some text</p></td> <td valign="center" width="192"><p>Define meta information related to the HTTP-EQUIV or Name property</p></td> </tr> </tbody> </table><p class="p"><p class="p"></p></p><p class="p"><p class="p">Optional properties</p></p><p><p></p></p> <table> <tbody> <tr> <td valign="center" width="192"> <p> Properties </p> </td> <td valign="center" width="606"> <p> Value </p> </td> <td valign="center" width="192"> <p> Description </p> </td> </tr> <tr> <td valign="center" width="192"> <p> http-equiv </p> </td> <td valign="center" width="606"> <p> Content-type / expire / refresh / set-cookie </p> </td> <td valign="center" width="192"> <p> Associate the Content property to the HTTP Header. </p> </td> </tr> <tr> <td valign="center" width="192"> <p> name </p> </td> <td valign="center" width="606"> <p> author& Nbsp;/ description / keywords / generator / revised / others </p> </td> <td valign="center" width="192" to <p> Associates the content property to a Name. <p></p> </td> </tr> <tr> <td valign="center" width="192"> <p> Content </p> </td> <td valign="center" width="606"> <p> Some text </p> </td> <td valign="center" width="192"> <p> Defines the format used for translation content attribute Values. </p></td> </tr> </tbody> </table><p class="p"><p class="p">SEO optimization</p></p><p class="p"><p class="p">Reference documents</p></p> <ul> <ul> <li>Page keywords, Each page should have a unique set of keywords that describe the content of the Page.</li> <li> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="keywords" content="your tags" /></code></li> </ol><br>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.</li> <li>Page description, Each page should have a no more than 150 characters and can accurately reflect the content of the page description Tag.</li> <li> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="description" content="150 words" /></code></li> </ol></li> <li>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.</li> </ul> </ul><p class="pre"><p class="pre"><meta 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; Ndex: the file will be retrieved; follow: the link on the page can be queried; noindex: the file will not be retrieved; nofollow: the link on the page cannot be Queried. -</p></p> <ul> <ul> <li>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).</li> <li>Other</li> <li>Viewport: can optimize the display of mobile Browser. If it is not a responsive web site, do not use Initial-scale or disable Scaling.<br>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.</li> </ul> </ul> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta http-equiv="refresh" content="0;url=" /></code></li> </ol> </ol> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="author" content="author name" /></code></li> <li class="L0"><code class="language-c"> <!-- 定义网页作者 --></code></li> <li class="L0"><code class="language-c"><meta name="google" content="index,follow" /><meta name="googlebot" content="index,follow" /><meta name="verify" content="index,follow" /></code></li> </ol> </ol>Mobile devices <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/></code></li> <li class="L0"><code class="language-c"><!-- `width=device-width` 会导致 iPhone 5 添加到主屏后以 WebApp 全屏模式打开页面时出现黑边 --></code></li> </ol> </ol><p><p>1. Width: widths (values/device-width) (range from 200 to 10,000, default = 980 Pixels)</p></p><p><p>2. height: altitude (value/device-height) (range from 223 to 10,000)</p></p><p><p>3. Initial-scale: Initial zoom ratio (range from >0 to 10)</p></p><p><p>4. Minimum-scale: allows the user to zoom to the minimum scale</p></p><p><p>5. Maximum-scale: allows the user to zoom to the maximum scale</p></p><p><p>6. User-scalable: Whether the user can be manually retracted (no,yes)</p></p><p><p>7. Minimal-ui: You can minimize the upper and lower status bar when the page loads. (deprecated)</p></p><p class="p"><p class="p">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.</p></p> <ul> <ul> <li>WebApp full screen mode: fake app, offline app.</li> <li>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.</li> <li>Title after adding to the main screen</li> </ul> </ul> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="apple-mobile-web-app-capable" content="yes" /> <!-- 启用 WebApp 全屏模式 --></code></li> </ol> </ol> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /></code></li> </ol> </ol> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="apple-mobile-web-app-title" content="标题"></code></li> </ol> </ol><p class="p"><p class="p"></p></p> <ul> <ul> <li>Ignore numbers automatically recognized as phone numbers</li> <li><code class="language-c"><meta content="telephone=no" name="format-detection" /> </code></li> <li>Ignore recognition mailboxes</li> <li><meta content= "email=no" name= "format-detection"/></li> </ul> </ul> <ul> <ul> <li>Add Smart App Banner Smart app Banner: tell the browser the app that corresponds to this website and display the download Banner (for Example) on the Page.<br></li> </ul> </ul> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"> </code></li> </ol> </ol><p class="p"><p class="p"></p></p> <ul> <ul> <li>Other reference documents</li> </ul> </ul><p class="pre"><p class="pre"></p></p> <ol class="linenums"> <li class="L0"><li class="L0"><code class="language-c"><!-- 针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="HandheldFriendly" content="true"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- 微软的老式浏览器 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="MobileOptimized" content="320"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- uc强制竖屏 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="screen-orientation" content="portrait"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- QQ强制竖屏 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="x5-orientation" content="portrait"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- UC强制全屏 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="full-screen" content="yes"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- QQ强制全屏 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="x5-fullscreen" content="true"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- UC应用模式 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="browsermode" content="application"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- QQ应用模式 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="x5-page-mode" content="app"></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><!-- windows phone 点击无高光 --></code></li></li> <li class="L0"><li class="L0"><code class="language-c"><meta name="msapplication-tap-highlight" content="no"></code></li></li> </ol><p><p></p></p>Web related <ul> <ul> <li>Declaration Code</li> </ul> </ul><p class="pre"><p class="pre"><meta charset= ' Utf-8 '/></p></p> <ul> <ul> <li>Use the latest version of IE and Chrome first</li> </ul> </ul><p class="pre"><p class="pre"></p></p> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-css"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /></code></li> <li class="L1"><code class="language-css"><!-- 关于X-UA-Compatible --></code></li> <li class="L2"><code class="language-css"><meta http-equiv="X-UA-Compatible" content="IE=6" ></code></li> <li class="L3"><code class="language-css"><!-- 使用IE6 --></code></li> <li class="L4"><code class="language-css"><meta http-equiv="X-UA-Compatible" content="IE=7" ></code></li> <li class="L5"><code class="language-css"><!-- 使用IE7 --></code></li> <li class="L6"><code class="language-css"><meta http-equiv="X-UA-Compatible" content="IE=8" ></code></li> <li class="L7"><code class="language-css"><!-- 使用IE8 --></code></li> </ol> </ol><p><p></p></p> <ul> <ul> <li>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. Reference documents</li> </ul> </ul> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"> <meta name="renderer" content="webkit|ie-comp|ie-stand"></code></li> </ol> </ol><p class="p"><p class="p">The default kernel mode for Dual-core browsers is as Follows:<br>1. Sogou high-speed browser, QQ browser: IE core (compatibility Mode)<br>2.360 speed browser, roaming browser: webkit kernel (fast mode)</p></p> <ul> <ul> <li>Prevents browsers from accessing page content from the local Computer's cache: This setting allows visitors to browse OFFLINE.</li> </ul> </ul><p class="pre"><p class="pre"></p></p> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta http-equiv="Pragma" content="no-cache"></code></li> </ol> </ol><p><p></p></p> <ul> <ul> <li>Windows 8</li> </ul> </ul><p class="pre"><p class="pre"></p></p> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="msapplication-TileColor" content="#000"/> <!-- Windows 8 磁贴颜色 --><meta name="msapplication-TileImage" content="icon.png"/> <!-- Windows 8 磁贴图标 --></code></li> </ol> </ol><p><p></p></p> <ul> <ul> <li>Site adaptation: mainly used for Pc-mobile phone page of the corresponding relationship.</li> <li>transcoding declaration: using Baidu to open the Web page may be transcoded (such as stickers), to avoid transcoding can add the following meta</li> </ul> </ul> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta name="mobile-agent"content="format=[wml|xhtml|html5]; url=url"><!--[wml|xhtml|html5]根据手机页的协议语言,选择其中一种;url="url" 后者代表当前PC页所对应的手机页URL,两者必须是一一对应关系。 --></code></li> </ol> </ol> <ol class="linenums"> <ol class="linenums"> <li class="L0"><code class="language-c"><meta http-equiv="Cache-Control" content="no-siteapp" /></code></li> </ol> </ol><p><p></p></p><p><p> < meta > elements (pc-and mobile-side) </p> </p></span>
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