{"id":1836,"date":"2025-08-05T13:33:01","date_gmt":"2025-08-05T05:33:01","guid":{"rendered":"https:\/\/www.hgfwq.com\/blog\/?p=1836"},"modified":"2025-08-05T13:33:01","modified_gmt":"2025-08-05T05:33:01","slug":"meta%e6%a0%87%e7%ad%be%e6%9c%89%e5%93%aa%e4%ba%9b%e5%b1%9e%e6%80%a7%ef%bc%8c%e4%ba%86%e8%a7%a32025%e5%b9%b4%e7%9a%84%e4%bc%98%e5%8c%96%e6%8e%a8%e8%8d%90%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.hgfwq.com\/blog\/1836.html","title":{"rendered":"meta\u6807\u7b7e\u6709\u54ea\u4e9b\u5c5e\u6027\uff0c\u4e86\u89e32025\u5e74\u7684\u4f18\u5316\u63a8\u8350\u6307\u5357"},"content":{"rendered":"<p><h3>meta\u6807\u7b7e\u5c5e\u6027\u6982\u89c8<\/h3>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.hgfwq.com\/blog\/wp-content\/uploads\/2025\/07\/pBFs3i9r.jpg\" alt=\"meta\u6807\u7b7e\u6709\u54ea\u4e9b\u5c5e\u6027\uff0c\u4e86\u89e32025\u5e74\u7684\u4f18\u5316\u63a8\u8350\u6307\u5357\" title=\"meta\u6807\u7b7e\u6709\u54ea\u4e9b\u5c5e\u6027\uff0c\u4e86\u89e32025\u5e74\u7684\u4f18\u5316\u63a8\u8350\u6307\u5357\"><\/p>\n<p><p>meta\u6807\u7b7e\u662fHTML\u4e2d\u7528\u4e8e\u5b9a\u4e49\u9875\u9762\u5143\u6570\u636e\u7684\u6807\u7b7e\uff0c\u5b83\u4e0d\u4ea7\u751f\u4efb\u4f55\u53ef\u89c1\u7684\u8f93\u51fa\uff0c\u4f46\u63d0\u4f9b\u4e86\u5173\u4e8e\u6587\u6863\u7684\u5173\u952e\u4fe1\u606f\u3002meta\u6807\u7b7e\u6709\u8bb8\u591a\u5c5e\u6027\uff0c\u4ee5\u4e0b\u662f\u5176\u4e2d\u4e00\u4e9b\u5e38\u89c1\u7684\u5c5e\u6027\u53ca\u5176\u7528\u9014\uff1a<\/p>\n<\/p>\n<p><h3>1. content\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>content\u5c5e\u6027\u662fmeta\u6807\u7b7e\u7684\u6838\u5fc3\uff0c\u5b83\u5305\u542b\u4e86\u5b9e\u9645\u7684\u5185\u5bb9\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u7528\u4e8e\u63cf\u8ff0\u9875\u9762\u7684\u5b57\u7b26\u96c6\u3001\u9875\u9762\u7684\u63cf\u8ff0\u3001\u5173\u952e\u8bcd\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code>&lt;meta charset=\"UTF-8\"&gt;<\/p>\r\n<p>&lt;meta name=\"description\" content=\"\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u9875\u9762\uff0c\u7528\u4e8e\u5c55\u793ameta\u6807\u7b7e\u7684\u4f7f\u7528\u3002\"&gt;<\/p>\r\n<p>&lt;meta name=\"keywords\" content=\"meta\u6807\u7b7e, HTML, \u9875\u9762\u5143\u6570\u636e\"&gt;<\/code><\/pre>\n<\/p>\n<p><h3>2. charset\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>charset\u5c5e\u6027\u7528\u4e8e\u6307\u5b9a\u6587\u6863\u7684\u5b57\u7b26\u7f16\u7801\uff0c\u5e38\u89c1\u7684\u6709UTF-8\u3001ISO-8859-1\u7b49\u3002\u5b83\u786e\u4fdd\u4e86\u7f51\u9875\u5185\u5bb9\u7684\u6b63\u786e\u663e\u793a\u3002<\/p>\n<\/p>\n<p><h3>3. name\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>name\u5c5e\u6027\u7528\u4e8e\u63d0\u4f9b\u5173\u4e8e\u6587\u6863\u7684\u989d\u5916\u4fe1\u606f\uff0c\u5982\u9875\u9762\u7684\u6807\u9898\u3001\u4f5c\u8005\u3001\u5173\u952e\u8bcd\u7b49\u3002\u5b83\u901a\u5e38\u4e0econtent\u5c5e\u6027\u4e00\u8d77\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code>&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt; <!-- \u7528\u4e8e\u79fb\u52a8\u7aef\u4f18\u5316 --><\/p>\r\n<p>&lt;meta name=\"author\" content=\"\u5f20\u4e09\"&gt; <!-- \u6307\u5b9a\u4f5c\u8005 --><\/p>\r\n<p>&lt;meta name=\"robots\" content=\"noindex,nofollow\"&gt; <!-- \u6307\u793a\u641c\u7d22\u5f15\u64ce\u4e0d\u7d22\u5f15\u6216\u8ddf\u968f\u94fe\u63a5 --><\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4. http-equiv\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>http-equiv\u5c5e\u6027\u7528\u4e8e\u5b9a\u4e49meta\u6807\u7b7e\u7684HTTP\u54cd\u5e94\u5934\u4fe1\u606f\u3002\u5b83\u53ef\u4ee5\u6a21\u62dfHTTP\u5934\u4fe1\u606f\uff0c\u4f8b\u5982\u8bbe\u7f6e\u7f13\u5b58\u7b56\u7565\u3002<\/p>\n<\/p>\n<p><pre><code>&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\"&gt; <!-- \u8bbe\u7f6e\u5b57\u7b26\u96c6 --><\/p>\r\n<p>&lt;meta http-equiv=\"Cache-Control\" content=\"no-cache\"&gt; <!-- \u8bbe\u7f6e\u7f13\u5b58\u7b56\u7565 --><\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>5. property\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>property\u5c5e\u6027\u7528\u4e8e\u63d0\u4f9b\u7279\u5b9a\u4e8e\u641c\u7d22\u5f15\u64ce\u7684\u5143\u6570\u636e\uff0c\u5982\u9875\u9762\u7684\u793e\u4ea4\u5206\u4eab\u4fe1\u606f\u3001\u89c6\u9891\u4fe1\u606f\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code>&lt;meta property=\"og:title\" content=\"\u793a\u4f8b\u9875\u9762\u6807\u9898\"&gt; <!-- Facebook\u5206\u4eab\u6807\u9898 --><\/p>\r\n<p>&lt;meta property=\"og:description\" content=\"\u793a\u4f8b\u9875\u9762\u63cf\u8ff0\"&gt; <!-- Facebook\u5206\u4eab\u63cf\u8ff0 --><\/p>\r\n<p>&lt;meta property=\"og:image\" content=\"example.jpg\"&gt; <!-- Facebook\u5206\u4eab\u56fe\u7247 --><\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>6. scheme\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>scheme\u5c5e\u6027\u7528\u4e8e\u6307\u5b9acontent\u5c5e\u6027\u7684\u503c\u7684\u6570\u636e\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u201curl\u201d\u8868\u793aURL\u5730\u5740\u3002<\/p>\n<\/p>\n<p><pre><code>&lt;meta name=\"url\" scheme=\"http\" content=\"http:\/\/example.com\"&gt; <!-- \u6307\u5b9aURL\u5730\u5740 --><\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>7. content\u5c5e\u6027\u7684\u5176\u4ed6\u7528\u9014<\/h3>\n<\/p>\n<p><p>content\u5c5e\u6027\u9664\u4e86\u4e0a\u8ff0\u7528\u9014\u5916\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u8bbe\u7f6e\u9875\u9762\u6837\u5f0f\u3001\u811a\u672c\u7b49\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u793a\u4f8b\u8bbe\u7f6e\u4e86\u9875\u9762\u7684\u5185\u8054CSS\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code>&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;<\/p>\r\n<p>&lt;style type=\"text\/css\"&gt;<\/p>\r\n<p>  body { background-color: f0f0f0; }<\/p>\r\n<p>&lt;\/style&gt;<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>8. \u63a8\u8350\u4f7f\u7528\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u4f7f\u7528\u7684meta\u6807\u7b7e\u5c5e\u6027\uff0c\u5b83\u4eec\u6709\u52a9\u4e8e\u63d0\u5347\u9875\u9762\u7684SEO\u4f18\u5316\u548c\u7528\u6237\u4f53\u9a8c\uff1a<\/p>\n<\/p>\n<ul>\n<li>charset\uff1a\u6307\u5b9a\u5b57\u7b26\u7f16\u7801\uff0c\u5982UTF-8\u3002<\/li>\n<li>description\uff1a\u63d0\u4f9b\u9875\u9762\u63cf\u8ff0\uff0c\u6709\u52a9\u4e8e\u641c\u7d22\u5f15\u64ce\u4f18\u5316\u3002<\/li>\n<li>keywords\uff1a\u5217\u51fa\u5173\u952e\u8bcd\uff0c\u6709\u52a9\u4e8e\u641c\u7d22\u5f15\u64ce\u4f18\u5316\u3002<\/li>\n<li>viewport\uff1a\u4f18\u5316\u79fb\u52a8\u7aef\u9875\u9762\u663e\u793a\u3002<\/li>\n<li>http-equiv\uff1a\u8bbe\u7f6eHTTP\u54cd\u5e94\u5934\u4fe1\u606f\uff0c\u5982\u7f13\u5b58\u7b56\u7565\u3002<\/li>\n<\/ul>\n<p><h3>9. \u4e3a\u4ec0\u4e48\u4f7f\u7528meta\u6807\u7b7e<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528meta\u6807\u7b7e\u53ef\u4ee5\u63d0\u4f9b\u4ee5\u4e0b\u597d\u5904\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u589e\u5f3a\u9875\u9762SEO\u4f18\u5316\uff0c\u63d0\u9ad8\u641c\u7d22\u5f15\u64ce\u6392\u540d\u3002<\/li>\n<li>\u63d0\u4f9b\u66f4\u591a\u5173\u4e8e\u9875\u9762\u7684\u4fe1\u606f\uff0c\u65b9\u4fbf\u641c\u7d22\u5f15\u64ce\u6293\u53d6\u3002<\/li>\n<li>\u4f18\u5316\u7528\u6237\u4f53\u9a8c\uff0c\u5982\u8bbe\u7f6e\u5408\u9002\u7684\u5b57\u7b26\u7f16\u7801\u3001viewport\u7b49\u3002<\/li>\n<\/ul>\n<p><h3>\u95ee\u7b54\u73af\u8282<\/h3>\n<\/p>\n<p><b>\u95ee\uff1ameta\u6807\u7b7e\u7684charset\u5c5e\u6027\u6709\u4ec0\u4e48\u4f5c\u7528\uff1f<\/b><\/p>\n<p><p>charset\u5c5e\u6027\u7528\u4e8e\u6307\u5b9a\u6587\u6863\u7684\u5b57\u7b26\u7f16\u7801\uff0c\u786e\u4fdd\u7f51\u9875\u5185\u5bb9\u7684\u6b63\u786e\u663e\u793a\uff0c\u907f\u514d\u4e71\u7801\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><b>\u95ee\uff1ameta\u6807\u7b7e\u7684viewport\u5c5e\u6027\u6709\u4ec0\u4e48\u4f5c\u7528\uff1f<\/b><\/p>\n<p><p>viewport\u5c5e\u6027\u7528\u4e8e\u4f18\u5316\u79fb\u52a8\u7aef\u9875\u9762\u663e\u793a\uff0c\u5982\u8bbe\u7f6e\u9875\u9762\u7684\u5bbd\u5ea6\u3001\u7f29\u653e\u6bd4\u4f8b\u7b49\u3002<\/p>\n<\/p>\n<p><b>\u95ee\uff1ameta\u6807\u7b7e\u7684http-equiv\u5c5e\u6027\u6709\u4ec0\u4e48\u4f5c\u7528\uff1f<\/b><\/p>\n<p><p>http-equiv\u5c5e\u6027\u7528\u4e8e\u5b9a\u4e49meta\u6807\u7b7e\u7684HTTP\u54cd\u5e94\u5934\u4fe1\u606f\uff0c\u5982\u8bbe\u7f6e\u7f13\u5b58\u7b56\u7565\u3001\u5b57\u7b26\u7f16\u7801\u7b49\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>meta\u6807\u7b7e\u5c5e\u6027\u6982\u89c8 meta\u6807\u7b7e\u662fHTML\u4e2d\u7528\u4e8e\u5b9a\u4e49\u9875\u9762\u5143\u6570\u636e\u7684\u6807\u7b7e\uff0c\u5b83\u4e0d\u4ea7\u751f\u4efb\u4f55\u53ef\u89c1\u7684\u8f93\u51fa\uff0c\u4f46\u63d0\u4f9b\u4e86\u5173\u4e8e\u6587\u6863\u7684\u5173\u952e\u4fe1\u606f\u3002meta\u6807\u7b7e\u6709\u8bb8\u591a\u5c5e\u6027\uff0c\u4ee5\u4e0b\u662f\u5176\u4e2d\u4e00\u4e9b\u5e38\u89c1\u7684\u5c5e\u6027\u53ca\u5176\u7528\u9014\uff1a 1. content\u5c5e\u6027 content\u5c5e\u6027\u662fmeta\u6807&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1837,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[640,642,641],"topic":[],"class_list":["post-1836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-haiwai","tag-meta","tag-642","tag-641"],"_links":{"self":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts\/1836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/comments?post=1836"}],"version-history":[{"count":1,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts\/1836\/revisions"}],"predecessor-version":[{"id":1839,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts\/1836\/revisions\/1839"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/media\/1837"}],"wp:attachment":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/media?parent=1836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/categories?post=1836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/tags?post=1836"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/topic?post=1836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}