美文网首页
Meta用法

Meta用法

作者: 抱着熊喵啃什么 | 来源:发表于2019-03-07 10:26 被阅读0次

HTML从上至下,本篇记录Meta标签的使用。

摘抄一段GitHub HEAD 仓库的代码 很全面地解释说明了Meta用法

<!--
  The following 2 meta tags *must* come first in the <head>
  to consistently ensure proper document rendering.
  Any other head element should come *after* these tags.
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!--
  Allows control over where resources are loaded from.
  Place as early in the <head> as possible, as the tag  
  only applies to resources that are declared after it.
-->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">

<!-- Name of web application (only should be used if the website is used as an app) -->
<meta name="application-name" content="Application Name">

<!-- Theme Color for Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#4285f4">

<!-- Short description of the document (limit to 150 characters) -->
<!-- This content *may* be used as a part of search engine results. -->
<meta name="description" content="A description of the page">

<!-- Control the behavior of search engine crawling and indexing -->
<meta name="robots" content="index,follow"><!-- All Search Engines -->
<meta name="googlebot" content="index,follow"><!-- Google Specific -->

<!-- Tells Google not to show the sitelinks search box -->
<meta name="google" content="nositelinkssearchbox">

<!-- Tells Google not to provide a translation for this document -->
<meta name="google" content="notranslate">

<!-- Verify website ownership -->
<meta name="google-site-verification" content="verification_token"><!-- Google Search Console -->
<meta name="yandex-verification" content="verification_token"><!-- Yandex Webmasters -->
<meta name="msvalidate.01" content="verification_token"><!-- Bing Webmaster Center -->
<meta name="alexaVerifyID" content="verification_token"><!-- Alexa Console -->
<meta name="p:domain_verify" content="code_from_pinterest"><!-- Pinterest Console-->
<meta name="norton-safeweb-site-verification" content="norton_code"><!-- Norton Safe Web -->

<!-- Identify the software used to build the document (i.e. - WordPress, Dreamweaver) -->
<meta name="generator" content="program">

<!-- Short description of your document's subject -->
<meta name="subject" content="your document's subject">

<!-- Gives a general age rating based on the document's content -->
<meta name="rating" content="General">

<!-- Allows control over how referrer information is passed -->
<meta name="referrer" content="no-referrer">

<!-- Disable automatic detection and formatting of possible phone numbers -->
<meta name="format-detection" content="telephone=no">

<!-- Completely opt out of DNS prefetching by setting to "off" -->
<meta http-equiv="x-dns-prefetch-control" content="off">

<!-- Stores a cookie on the client web browser for identification purposes -->
<meta http-equiv="set-cookie" content="name=value; expires=date; path=url">

<!-- Specifies the document to appear in a specific frame -->
<meta http-equiv="Window-Target" content="_value">

<!-- Geo tags -->
<meta name="ICBM" content="latitude, longitude">
<meta name="geo.position" content="latitude;longitude">
<meta name="geo.region" content="country[-state]"><!-- Country code (ISO 3166-1): mandatory, state code (ISO 3166-2): optional; eg. content="US" / content="US-NY" -->
<meta name="geo.placename" content="city/town"><!-- eg. content="New York City" -->

相关文章

  • Meta用法

    HTML从上至下,本篇记录Meta标签的使用。 摘抄一段GitHub HEAD 仓库的代码 很全面地解释说明了Me...

  • 好程序员web前端分享html中meta标签及用法详解

    好程序员web前端培训分享html中meta标签及用法详解,这篇文章给大家介绍了html中meta标签及用法详解,...

  • 常见的meta标签及详细解说

    常见的meta标签 定义和用法: 元素可提供有关页面的元信息(meta-information),比如针对搜索引擎...

  • meta标签

    meta标签 定义和用法 meta标签的属性 必需属性 可选属性 name属性:提供了名称/值对中的名称。通常情况...

  • HTMl中的Meta标签居然有这么多!!!

    相信学习HTML的人都会知道Meta标签,那么什么是Meta标签呢? 定义及用法 是用来在HTML文档中模拟HTT...

  • HttpRequest.META用法

    http://www.cnblogs.com/scolia/archive/2016/07/01/5633351....

  • html meta用法总结

    http://www.haorooms.com/post/html_meta_ds

  • 标签用法1

    http-equiv META标签分两大部分:HTTP标题信息(HTTP-EQUIV)和页面描述信息(NAME)。...

  • meta标签的用法

    什么是meta标签? 引自下W3school的定义说明一下。 元数据(metadata)是关于数据的信息。标签提供...

  • 前端文章收藏

    HTML 标签和属性HTML标签大全手机页面的一些有用的meta前端 Meta 用法大汇总 标签语意化选择合适的块...

网友评论

      本文标题:Meta用法

      本文链接:https://www.haomeiwen.com/subject/zrdnuqtx.html