{"id":8488,"date":"2019-06-03T00:28:42","date_gmt":"2019-06-02T16:28:42","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488"},"modified":"2019-06-22T00:02:08","modified_gmt":"2019-06-21T16:02:08","slug":"html-a-link-rel","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/06\/html-a-link-rel\/","title":{"rendered":"HTML rel\u5c5e\u6027\u503c\u91ca\u4e49\u5927\u5168"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<br \/>\n<script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/201906-html-rel.jpg';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/html-rel.jpg\" width=\"455\" height=\"289\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001HTML rel\u5c5e\u6027\u503c\u7d22\u5f15<\/h3>\n<p>HTML\u4e2d\u6709\u4e00\u4e2a\u540d\u4e3a<code>rel<\/code>\u7684\u5c5e\u6027\uff0c\u662frelationship\u8fd9\u4e2a\u5355\u8bcd\u7684\u7f29\u5199\uff0c\u6307\u660e\u4e24\u4e2a\u6587\u6863\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u4e13\u95e8\u7528\u6765\u94fe\u63a5\u76f8\u5173\u5143\u7d20\u4e0a\uff0c\u5982<code>&lt;a&gt;<\/code>\u3001<code>&lt;area&gt;<\/code>\u3001<code>&lt;form&gt;<\/code>\u6216<code>&lt;link&gt;<\/code>\u5143\u7d20\u4e0a\uff0c\u56e0\u6b64<code>rel<\/code>\u7684\u5c5e\u6027\u503c\u4e5f\u662f\u201c\u94fe\u63a5\u7c7b\u578b\u201d\u7684\u4ee3\u79f0\u3002<\/p>\n<p><code>rel<\/code>\u652f\u6301\u975e\u5e38\u591a\u7684\u5c5e\u6027\u503c\uff0c\u5305\u542b\u7684\u77e5\u8bc6\u975e\u5e38\u591a\uff0c\u4e14\u6709\u4e9b\u5c5e\u6027\u503c\u975e\u5e38\u91cd\u8981\uff0c\u5b8c\u6574\u7ec6\u8bfb\u81f3\u5c11\u9700\u898130\u5206\u949f\u65f6\u95f4\u3002<\/p>\n<style>.rel-list-a { display: inline-block; width: 120px; padding: 5px; margin: 10px 10px 0 0; border: 1px dotted; }.rel-list-a:hover,.rel-list-a:active{text-decoration:none;background-color:#f0f3f9;}.rel-list-a .icon-trash{background-image:url(data:image\/svg+xml;base64,PHN2ZyBzdHlsZT0iZmlsbDogI2QwMDsiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIyIiBoZWlnaHQ9IjI4IiB2aWV3Qm94PSIwIDAgMjIgMjgiIGFyaWEtaGlkZGVuPSJ0cnVlIj48cGF0aCBkPSJNOCAyMS41di0xMWMwLS4yODEtLjIxOS0uNS0uNS0uNWgtMWMtLjI4MSAwLS41LjIxOS0uNS41djExYzAgLjI4MS4yMTkuNS41LjVoMWMuMjgxIDAgLjUtLjIxOS41LS41em00IDB2LTExYzAtLjI4MS0uMjE5LS41LS41LS41aC0xYy0uMjgxIDAtLjUuMjE5LS41LjV2MTFjMCAuMjgxLjIxOS41LjUuNWgxYy4yODEgMCAuNS0uMjE5LjUtLjV6bTQgMHYtMTFjMC0uMjgxLS4yMTktLjUtLjUtLjVoLTFjLS4yODEgMC0uNS4yMTktLjUuNXYxMWMwIC4yODEuMjE5LjUuNS41aDFjLjI4MSAwIC41LS4yMTkuNS0uNXpNNy41IDZoN2wtLjc1LTEuODI4QS42LjYgMCAwIDAgMTMuNDg0IDRIOC41MzFhLjUyNi41MjYgMCAwIDAtLjI2Ni4xNzJ6bTE0LjUuNXYxYzAgLjI4MS0uMjE5LjUtLjUuNUgyMHYxNC44MTJjMCAxLjcxOS0xLjEyNSAzLjE4Ny0yLjUgMy4xODdoLTEzYy0xLjM3NSAwLTIuNS0xLjQwNi0yLjUtMy4xMjVWNy45OTlILjVhLjQ5NC40OTQgMCAwIDEtLjUtLjV2LTFjMC0uMjgxLjIxOS0uNS41LS41aDQuODI4TDYuNDIyIDMuMzljLjMxMy0uNzY2IDEuMjUtMS4zOTEgMi4wNzgtMS4zOTFoNWMuODI4IDAgMS43NjYuNjI1IDIuMDc4IDEuMzkxbDEuMDk0IDIuNjA5SDIxLjVjLjI4MSAwIC41LjIxOS41LjV6Ii8+PC9zdmc+);background-size:16px;width:16px;height:20px;margin-right:5px;display:inline-block;vertical-align:-4px;}.rel-list-a .icon-exper{background-image:url(data:image\/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiBpY29uLWZsYXNrIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyOCIgYXJpYS1oaWRkZW49InRydWUiPjxwYXRoIGQ9Ik0yMy44NTkgMjIuNjI1QzI1LjAzMSAyNC40ODQgMjQuMjAzIDI2IDIyIDI2SDRjLTIuMjAzIDAtMy4wMzEtMS41MTYtMS44NTktMy4zNzVMMTAgMTAuMjM0VjRIOWMtLjU0NyAwLTEtLjQ1My0xLTFzLjQ1My0xIDEtMWg4Yy41NDcgMCAxIC40NTMgMSAxcy0uNDUzIDEtMSAxaC0xdjYuMjM0ek0xMS42ODggMTEuMjk3TDcuNDM4IDE4aDExLjEyNWwtNC4yNS02LjcwMy0uMzEzLS40ODRWNGgtMnY2LjgxM3oiLz48L3N2Zz4=);background-size:16px;width:16px;height:17px;margin-right:5px;display:inline-block;vertical-align:-4px;}<\/style>\n<p><a href=\"#alternateRel\" class=\"rel-list-a\">alternate<\/a><a href=\"#archivesRel\" class=\"rel-list-a\"><i class=\"icon-trash\"><\/i>archives<\/a><a href=\"#authorRel\" class=\"rel-list-a\">author<\/a><a href=\"#bookmarkRel\" class=\"rel-list-a\">bookmark<\/a><a href=\"#canonicalRel\" class=\"rel-list-a\">canonical<\/a><a href=\"#dns-prefetchRel\" class=\"rel-list-a\"><i class=\"icon-exper\"><\/i>dns-prefetch<\/a><a href=\"#externalRel\" class=\"rel-list-a\">external<\/a><a href=\"#firstRel\" class=\"rel-list-a\"><i class=\"icon-trash\"><\/i>first<\/a><a href=\"#helpRel\" class=\"rel-list-a\">help<\/a><a href=\"#iconRel\" class=\"rel-list-a\">icon<\/a><a href=\"#importRel\" class=\"rel-list-a\"><i class=\"icon-exper\"><\/i>import<\/a><a href=\"#indexRel\" class=\"rel-list-a\"><i class=\"icon-trash\"><\/i>index<\/a><a href=\"#lastRel\" class=\"rel-list-a\"><i class=\"icon-trash\"><\/i>last<\/a><a href=\"#licenseRel\" class=\"rel-list-a\">license<\/a><a href=\"#manifestRel\" class=\"rel-list-a\">manifest<\/a><a href=\"#modulepreloadRel\" class=\"rel-list-a\">modulepreload<\/a><a href=\"#nextRel\" class=\"rel-list-a\">next<\/a><a href=\"#nofollowRel\" class=\"rel-list-a\">nofollow<\/a><a href=\"#noopenerRel\" class=\"rel-list-a\">noopener<\/a><a href=\"#noreferrerRel\" class=\"rel-list-a\">noreferrer<\/a><a href=\"#openerRel\" class=\"rel-list-a\"><i class=\"icon-exper\"><\/i>opener<\/a><a href=\"#pingbackRel\" class=\"rel-list-a\">pingback<\/a><a href=\"#preconnectRel\" class=\"rel-list-a\"><i class=\"icon-exper\"><\/i>preconnect<\/a><a href=\"#prefetchRel\" class=\"rel-list-a\">prefetch<\/a><a href=\"#preloadRel\" class=\"rel-list-a\">preload<\/a><a href=\"#prerenderRel\" class=\"rel-list-a\"><i class=\"icon-exper\"><\/i>prerender<\/a><a href=\"#prevRel\" class=\"rel-list-a\">prev<\/a><a href=\"#searchRel\" class=\"rel-list-a\">search<\/a><a href=\"#shortlinkRel\" class=\"rel-list-a\">shortlink<\/a><a href=\"#sidebarRel\" class=\"rel-list-a\">sidebar<\/a><a href=\"#stylesheetRel\" class=\"rel-list-a\">stylesheet<\/a><a href=\"#tagRel\" class=\"rel-list-a\">tag<\/a><a href=\"#upRel\" class=\"rel-list-a\"><i class=\"icon-trash\"><\/i>up<\/a><\/p>\n<h3>\u4e8c\u300133\u4e2arel\u5c5e\u6027\u503c\u5b8c\u5168\u5c55\u793a<\/h3>\n<h4 id=\"alternateRel\">1. rel=&#8221;alternate&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5355\u8bcdalternate\u6709\u4ea4\u66ff\u3001\u66ff\u6362\u7684\u610f\u601d\u3002\u987e\u540d\u601d\u610f\u5c31\u662f\u94fe\u63a5\u6709\u66ff\u6362\u5185\u5bb9\u3002\u4e3b\u8981\u6709\u4e0b\u97623\u5927\u5e94\u7528\u573a\u666f\uff0c\u6709\u4e9b\u573a\u666f\u8fd8\u975e\u5e38\u5b9e\u7528\u3002<\/p>\n<ol>\n<li>\u7528\u5728<code>&lt;link&gt;<\/code>\u5143\u7d20\u4e2d\uff0c\u548c<code>stylesheet<\/code>\u94fe\u63a5\u7c7b\u578b\u4e00\u8d77\u4f7f\u7528\uff0c\u914d\u5408<code>title<\/code>\u5c5e\u6027\uff08\u5fc5\u987b\uff09\uff0c\u53ef\u4ee5\u5b9a\u4e49\u66ff\u6362CSS\uff0c\u53ef\u4ee5\u4ee5\u4e00\u79cd\u4f53\u9a8c\u66f4\u597d\u7684\u65b9\u5f0f\u5b9e\u73b0\u7c7b\u4f3c\u6362\u80a4\u8fd9\u79cd\u529f\u80fd\u3002\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201902\/alternate-skin.gif\" width=\"284\" height=\"372\" alt=\"\u6362\u80a4\u6548\u679c\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u517c\u5bb9\u6027\u975e\u5e38\u597d\uff0cIE\uff0cChrome\u548cFirefox\u5747\u652f\u6301\u8fd9\u79cd\u66f4\u539f\u751f\u7684\u6362\u80a4\u6548\u679c\u5b9e\u73b0\u3002<\/p>\n<p>\u5177\u4f53\u539f\u7406\u4e0e\u5b9e\u73b0\u53ef\u4ee5\u53c2\u89c1\u8fd9\u7bc7\u70ed\u95e8\u6587\u7ae0\uff1a\u201c<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/02\/link-rel-alternate-website-skin\/\">link rel=alternate\u7f51\u7ad9\u6362\u80a4\u529f\u80fd\u6700\u4f73\u5b9e\u73b0<\/a>\u201d\u3002\n<\/li>\n<li>\u5982\u679c\u7f51\u7ad9\u5305\u542bRSS\u8ba2\u9605\u3002\u53ef\u4ee5\u4f7f\u7528\u8be5\u503c\u8fdb\u884c\u6307\u660e\uff0c\u9700\u8981\u8bbe\u7f6etype\u5c5e\u6027\u503c\u4e3a<code>application\/rss+xml<\/code>\u6216\u8005<code>application\/atom+xml<\/code>\uff08ATOM\u662f\u4e00\u79cd\u8ba2\u9605\u7f51\u5fd7\u7684\u683c\u5f0f\u3002\u4e00\u79cdWeb feed\uff0c\u548cRSS\u76f8\u7c7b\u4f3c\uff09\u3002\u4f8b\u5982\uff1a\n<pre>&lt;link rel=\"alternate\" type=\"application\/rss+xml\" href=\"https:\/\/zhangxinxu.com\/feed\" \/&gt;<\/pre>\n<p>\u6216\u8005\u4f7f\u7528\u5728\u6307\u5411RSS\u8ba2\u9605\u5730\u5740\u7684<code>&lt;a&gt;<\/code>\u5143\u7d20\u4e0a\uff1a<\/p>\n<pre>&lt;a rel=\"alternate\"t ype=\"application\/rss+xml\" href=\"https:\/\/zhangxinxu.com\/feed\"&gt;RSS\u8ba2\u9605&lt;\/a&gt;<\/pre>\n<\/li>\n<li>\u8fd8\u53ef\u4ee5\u7528\u6765\u5b9a\u4e49\u7528\u6765\u66ff\u6362\u7684\u9875\u9762\u3002\u573a\u666f\u8f83\u591a\uff0c\u4f8b\u5982\uff1a\n<ul>\n<li>media\u54cd\u5e94\u5904\u7406\uff0c\u5c0f\u4e8e640\u50cf\u7d20\u65f6\u5019\uff0c\u544a\u8bc9\u7528\u6237\u6216\u8005\u8bbe\u5907\uff08\u6216\u641c\u7d22\u5f15\u64ce\uff09\uff0c\u8fd8\u6709\u79fb\u52a8\u7ad9\u9875\u9762\uff0c\u4f8b\u5982\uff1a\n<pre>&lt;link rel=\"alternate\" media=\"only screen and (max-width: 640px)\" href=\"https:\/\/m.zhangxinxu.com\/\" \/&gt;<\/pre>\n<\/li>\n<li>\u591a\u8bed\u8a00\u65f6\u5019\u544a\u8bc9\u7528\u6237\u6216\u8005\u8bbe\u5907\uff08\u6216\u641c\u7d22\u5f15\u64ce\uff09\u8fd8\u6709\u5176\u4ed6\u8bed\u8a00\u7684\u7f51\u7ad9\uff0c\u9700\u8981<code>hreflang<\/code>\u5c5e\u6027\u540c\u65f6\u8bbe\u7f6e\uff0c\u4f8b\u5982\u897f\u73ed\u7259\u8bed\uff1a\n<pre>&lt;link rel=\"alternate\" href=\"http:\/\/es.zhangxinxu.com\/\" hreflang=\"es\" \/&gt;<\/pre>\n<p>\u6216\u8005\u76f4\u63a5\u94fe\u63a5\u4e5f\u53ef\u4ee5\uff1a<\/p>\n<pre>&lt;a href=\"http:\/\/es.zhangxinxu.com\/\" hreflang=\"es\" rel=\"alternate\"&gt;\u897f\u73ed\u7259\u8bed&lt;\/a&gt;<\/pre>\n<\/li>\n<li>\u6307\u5411\u53e6\u5916\u7684\u683c\u5f0f\uff0c\u4f8b\u5982PDF\u6587\u4ef6\uff0c\u9700\u8981<code>type<\/code>\u5c5e\u6027\u540c\u65f6\u8bbe\u7f6e\uff08\u503c\u4e3a\u5bf9\u5e94\u6587\u4ef6\u7684MIME type\u503c\uff09\u3002<\/li>\n<li>\u6216\u8005\u4e0a\u9762\u6df7\u5408\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4 id=\"archivesRel\">2. rel=&#8221;archives&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>archives\u8bed\u4e49\u662f\u5f52\u6863\u3002\u6b64<code>rel<\/code>\u5c5e\u6027\u503c\u53ef\u4ee5\u7528\u6765\u5b9a\u4e49\u6307\u5411\u5f52\u6863\u8bed\u4e49\u7684\u8d85\u94fe\u63a5\u3002\u4f8b\u5982\uff0c\u6211\u7684\u535a\u5ba2\u7684\u6bcf\u6708\u7d22\u5f15\u9875\u7684<code>&lt;a&gt;<\/code>\u94fe\u63a5\u5c31\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u503c\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/05\/\" rel=\"archives\"&gt;2019\u5e74\u4e94\u6708&lt;\/a&gt;<\/pre>\n<p>\u6ce8\u610f\u540e\u9762\u6709<code>s<\/code>\uff0c\u76f4\u63a5<code>rel=\"archive\"<\/code>\u662f\u4e0d\u6b63\u786e\u7684\uff0c\u4e0d\u8981\u4f7f\u7528\u3002<\/p>\n<h4 id=\"authorRel\">3. rel=&#8221;author&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u94fe\u63a5\u6307\u5411\u4f5c\u8005\u4ecb\u7ecd\u9875\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;a href=\"https:\/\/www.zhangxinxu.com\/life\/about\/\" rel=\"author\"&gt;\u5f20\u946b\u65ed&lt;\/a&gt;<\/pre>\n<p>\u94fe\u63a5\u5730\u5740\u652f\u6301\u76f4\u63a5<code>href<\/code>\u5c5e\u6027\u503c\u4ee5<code>mailto:<\/code>\u5f00\u5934\uff0c\u53ef\u4ee5\u547c\u8d77\u90ae\u4ef6\u5ba2\u6237\u7aef\u53d1\u9001\u90ae\u4ef6\uff0c\u4f46\u662f\u5728\u7f51\u9875\u4e2d\u5176\u5b9e\u4e0d\u63a8\u8350\u8fd9\u4e48\u505a\uff0c\u56e0\u4e3a\u5bb9\u6613\u88ab\u722c\u866b\u628a\u90ae\u7bb1\u722c\u8fc7\u53bb\u3002\u63a8\u8350\u4f5c\u4e3a\u662f\u94fe\u63a5\u5730\u5740\u6267\u884c\u4f5c\u8005\u4fe1\u606f\u4ecb\u7ecd\u9875\u9762\uff0c\u7136\u540e\u901a\u8fc7<code>rel=\"author\"<\/code>\u589e\u5f3a\u8fd9\u4e2a\u94fe\u63a5\u7684\u8bed\u4e49\u3002<\/p>\n<h4 id=\"bookmarkRel\">4. rel=&#8221;bookmark&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;<\/td>\n<td align=\"center\">&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>bookmark\u7684\u8bed\u4e49\u662f\u4e66\u7b7e\u3002<\/p>\n<p>\u901a\u5e38\u7528\u5728\u6307\u5411\u6587\u7ae0\u5185\u5bb9\u7684\u6c38\u4e45\u94fe\u63a5\u4e0a\uff0c\u4f8b\u5982<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/\">\u672c\u7ad9\u7684\u5217\u8868\u9875<\/a>\u6bcf\u4e00\u4e2a\u6587\u7ae0\u94fe\u63a5\u5143\u7d20\u5c31\u6709\u8bbe\u7f6e<code>rel=bookmark<\/code>\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-01_183412.png\" width=\"612\" height=\"156\" alt=\"\u672c\u7ad9\u6587\u7ae0\u94fe\u63a5\u548crel=bookmark\" class=\"alignnone size-medium\" \/><\/p>\n<h4 id=\"canonicalRel\">5. rel=&#8221;canonical&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>canonical\u662f\u89c4\u8303\u7684\u610f\u601d\uff0c\u53ea\u80fd\u4f5c\u7528\u5728<code>&lt;link&gt;<\/code>\u5143\u7d20\u4e0a\uff0c\u6b64\u503c\u7684\u4f5c\u7528\u4e0e\u641c\u7d22\u5f15\u64ce\u6709\u5173\uff0c\u53ef\u4ee5\u4e3a\u7c7b\u4f3c\u7f51\u9875\u6216\u91cd\u590d\u7f51\u9875\u6307\u5b9a\u89c4\u8303\u7f51\u9875\u3002<\/p>\n<p>\u62ffGoogle\u641c\u7d22\u4e3e\u4f8b\uff0c\u5982\u679c\u60a8\u7684\u67d0\u4e00\u4e2a\u7f51\u9875\u53ef\u901a\u8fc7\u591a\u4e2a\u7f51\u5740\u8bbf\u95ee\uff0c\u6216\u8005\u60a8\u7684\u4e0d\u540c\u7f51\u9875\u5305\u542b\u7c7b\u4f3c\u5185\u5bb9\uff08\u4f8b\u5982\uff0c\u67d0\u4e2a\u7f51\u9875\u65e2\u6709\u79fb\u52a8\u7248\uff0c\u53c8\u6709\u684c\u9762\u7248\uff09\uff0c\u90a3\u4e48 Google \u4f1a\u5c06\u8fd9\u4e9b\u7f51\u9875\u89c6\u4e3a\u540c\u4e00\u4e2a\u7f51\u9875\u7684\u91cd\u590d\u7248\u672c\u3002Google \u4f1a\u9009\u62e9\u4e00\u4e2a\u7f51\u5740\u4f5c\u4e3a\u89c4\u8303\u7248\u672c\u5e76\u6293\u53d6\u8be5\u7f51\u5740\uff0c\u800c\u5c06\u6240\u6709\u5176\u4ed6\u7f51\u5740\u89c6\u4e3a\u91cd\u590d\u7f51\u5740\u5e76\u964d\u4f4e\u5bf9\u8fd9\u4e9b\u7f51\u5740\u7684\u6293\u53d6\u9891\u7387\u3002<\/p>\n<p>\u5982\u679c\u60a8\u672a\u660e\u786e\u544a\u77e5 Google \u54ea\u4e2a\u7f51\u5740\u662f\u89c4\u8303\u7f51\u5740\uff0cGoogle \u5c31\u4f1a\u66ff\u60a8\u505a\u51fa\u9009\u62e9\uff0c\u6216\u4f1a\u5c06\u8fd9\u4e24\u4e2a\u7248\u672c\u89c6\u4e3a\u540c\u7b49\u91cd\u8981\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u51fa\u73b0\u4e00\u4e9b\u4e0d\u5f53\u7684\u884c\u4e3a\u3002<\/p>\n<p>\u90a3\u5982\u4f55\u8ba9Google\u77e5\u9053\u54ea\u4e2a\u7f51\u5740\u662f\u6700\u89c4\u8303\u6700\u4f18\u5148\u7684\u5462\uff1f\u5176\u4e2d\u4e00\u4e2a\u65b9\u6cd5\u5c31\u662frel=canonical <code>&lt;link&gt;<\/code>\u6807\u8bb0\u3002<\/p>\n<p>\u4f8b\u5982wordpress\u6587\u7ae0\u94fe\u63a5\u5730\u5740\u6709\u591a\u79cdURL\u8868\u793a\uff0c\u6bd4\u5982\u6211\u5e0c\u671b\u7528\u6237\u901a\u8fc7 https:\/\/www.zhangxinxu.com\/wordpress\/2019\/05\/html-a-rel\/\uff08\u800c\u975e https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488\uff09\u8bbf\u95ee\u8fd9\u7bc7\u6587\u7ae0\u3002\u5219\u53ef\u4ee5\u5728<code>&lt;head&gt;<\/code>\u4e2d\u65b0\u589e\u5982\u4e0b\u6240\u793a\u7684\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;link rel=\"canonical\" href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/05\/html-a-rel\/\" \/&gt;<\/pre>\n<p>\u5982\u679c\u89c4\u8303\u7f51\u9875\u6709\u79fb\u52a8\u7248\uff0c\u8fd8\u53ef\u4ee5\u4e3a\u5176\u6dfb\u52a0 <code><a href=\"#alternateRel\">rel=\"alternate\"<\/a><\/code> \u94fe\u63a5\uff0c\u5e76\u4f7f\u8be5\u94fe\u63a5\u6307\u5411\u6b64\u7f51\u9875\u7684\u79fb\u52a8\u7248\uff08\u672c\u7ad9\u6ca1\u6709\u4e13\u95e8\u79fb\u52a8\u9875\u9762\uff0c\u4e0b\u9762\u5730\u5740\u4ec5\u793a\u610f\uff09\uff1a<\/p>\n<pre>&lt;link rel=\"alternate\" media=\"only screen and (max-width: 640px)\" href=\"http:\/\/m.zhangxinxu.com\/wordpress\/2019\/05\/html-a-rel\/\"&gt;<\/pre>\n<p>rel=canonical <code>&lt;link&gt;<\/code>\u6807\u8bb0\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u6620\u5c04\u65e0\u9650\u591a\u4e2a\u91cd\u590d\u7f51\u9875\uff0c\u4e0d\u8db3\u662f\u5728\u5927\u578b\u7f51\u7ad9\u6216\u7f51\u5740\u7ecf\u5e38\u6539\u53d8\u7684\u7f51\u7ad9\u4e0a\u7ef4\u62a4\u6620\u5c04\u4f1a\u6bd4\u8f83\u590d\u6742\uff0c\u4e14\u4ec5\u9002\u7528\u4e8e HTML \u7f51\u9875\uff0c\u4e0d\u9002\u7528\u4e8e PDF \u4e4b\u7c7b\u7684\u6587\u4ef6\uff08\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 <code>rel=canonical<\/code> HTTP \u6807\u5934\uff09\u3002<\/p>\n<h4 id=\"dns-prefetchRel\">6. rel=&#8221;dns-prefetch&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ea\u80fd\u4f5c\u7528\u5728<code>&lt;link&gt;<\/code>\u5143\u7d20\u4e0a\uff0c\u4f5c\u7528\u662fDNS\u9884\u8bfb\u53d6\u3002\u5141\u8bb8\u6d4f\u89c8\u5668\u5728\u7528\u6237\u5355\u51fb\u94fe\u63a5\u4e4b\u524d\u8fdb\u884cDNS\u67e5\u627e\u548c\u534f\u8bae\u63e1\u624b\uff0c\u53ef\u4ee5\u63d0\u9ad8\u9875\u9762\u8d44\u6e90\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"dns-prefetch\" href=\"http:\/\/www.zhangxinxu.com\/\"&gt;<\/pre>\n<p>\u6b64\u65f6\u57df\u540d\u201cwww.zhangxinxu.com\u201d\u5c06\u88ab\u9884\u5148\u89e3\u6790\u3002<\/p>\n<p>\u6b64\u65f6\u5982\u679c\u9875\u9762\u4e2d\u6709\u94fe\u63a5\u5730\u5740\u7684\u57df\u540d\u4e5f\u662f\u201cwww.zhangxinxu.com\u201d\uff0c\u90a3\u4e48\u5f53\u7528\u6237\u70b9\u51fb\u8fd9\u4e2a\u94fe\u63a5\u7684\u65f6\u5019\uff0c\u65b0\u6253\u5f00\u7684\u9875\u9762\u5c31\u5c11\u4e86DNS\u5411\u4e0a\u67e5\u627e\u8fd9\u4e00\u6b65\uff0c\u56e0\u4e3a\u4e4b\u524d\u6d4f\u89c8\u5668\u5df2\u7ecfDNS\u9884\u8bfb\u53d6\u4e86\uff0c\u9875\u9762\u5448\u73b0\u901f\u5ea6\u5c31\u4f1a\u5feb\u4e00\u4e9b\uff0c\u867d\u7136\u5feb\u7684\u5e76\u4e0d\u662f\u5f88\u591a\uff0c\u4f46\u80fd\u5feb\u4e00\u70b9\u662f\u5feb\u4e00\u70b9\u3002<\/p>\n<h4 id=\"externalRel\">7. rel=&#8221;external&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>external\u662f\u5916\u90e8\u7684\u610f\u601d\u3002\u5f53\u94fe\u63a5\u6307\u5411\u7684\u662f\u5916\u90e8\u8d44\u6e90\u6216\u5916\u90e8\u94fe\u63a5\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u5c5e\u6027\u3002\u4e3b\u8981\u4f5c\u7528\u662f\u544a\u8bc9\u641c\u7d22\u5f15\u64ce\uff0c\u8fd9\u662f\u4e00\u4e2a\u5916\u90e8\u94fe\u63a5\u3002\u5e38\u5e38\u548c<code>nofollow<\/code>\u503c\u4e00\u8d77\u4f7f\u7528\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;a href=\"http:\/\/example.com\/\" rel=\"external nofollow\"&gt;Foobar&lt;\/a&gt;<\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f<code>rel=external<\/code>\u548c\u94fe\u63a5\u5728\u65b0\u7a97\u53e3\u6253\u5f00\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\u3002<\/p>\n<h4 id=\"firstRel\">8. rel=&#8221;first&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u6307\u5411\u4e00\u4e2a\u5e8f\u5217\u9875\u9762\u8d44\u6e90\u7684\u7b2c\u4e00\u4e2a\u8d44\u6e90\u3002\u5176\u5b83\u7c7b\u4f3c\u7684rel\u94fe\u63a5\u8d44\u6e90\u7c7b\u578b\u6709 <code>last<\/code>\uff0c<code>prev<\/code>\u548c<code>next<\/code>\u3002<\/p>\n<h4 id=\"helpRel\">9. rel=&#8221;help&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u5982\u679c\u5143\u7d20\u662f<code>&lt;a&gt;<\/code>\u6216<code>&lt;area&gt;<\/code>\uff0c\u5219\u8868\u793a\u8d85\u94fe\u63a5\u6307\u5411\u4e00\u4e2a\u8d44\u6e90\uff0c\u8be5\u8d44\u6e90\u5bf9\u5143\u7d20\u7684\u7236\u5143\u7d20\u53ca\u5176\u5b50\u5143\u7d20\u63d0\u4f9b\u4e86\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\u3002<\/li>\n<li>\u5982\u679c\u5143\u7d20\u662f<code>&lt;link&gt;<\/code>\uff0c\u5219\u8868\u793a\u8d85\u94fe\u63a5\u6307\u5411\u4e00\u4e2a\u8d44\u6e90\uff0c\u8be5\u8d44\u6e90\u5c06\u5bf9\u6574\u4e2a\u9875\u9762\u63d0\u4f9b\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\u6211\u4e4b\u524d\u5236\u4f5c\u7684\u4e00\u4e2a<a href=\"https:\/\/www.zhangxinxu.com\/sp\/svgo\/\" rel=\"noopener\" target=\"_blank\">SVG\u5728\u7ebf\u538b\u7f29\u5de5\u5177<\/a>\uff0c\u9009\u4e2d\u4efb\u610fSVG\uff0c\u6709\u4e0b\u56fe\u6240\u793a\u7684\u4e00\u4e2a\u6587\u6848\u548c\u56fe\u6807\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-01_213422.png\" width=\"311\" height=\"180\" alt=\"\u5e2e\u52a9\u94fe\u63a5\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u95ee\u53f7\u56fe\u6807\u662f\u4e00\u4e2a\u8d85\u94fe\u63a5\uff0c\u7528\u6765\u5bf9\u4e0a\u4e0b\u6587\u8fdb\u884c\u5e2e\u52a9\u8bf4\u660e\uff0c\u4e5f\u5c31\u662f\u89e3\u91caCSS\u8f6c\u4e49\u662f\u4ec0\u4e48\uff0c\u6b64\u65f6\u5c31\u975e\u5e38\u4f7f\u7528\u4f7f\u7528<code>rel=\"help\"<\/code>\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>CSS\u8f6c\u4e49&lt;a href=\"\/\/www.zhangxinxu.com\/wordpress\/?p=7957\" class=\"icon-a icon-help\" title=\"\u8fd9\u4e2a\u7528\u5728\u4ec0\u4e48\u5730\u65b9\uff1f\" <span style=\"color:#cd0000;\">rel=\"help\"<\/span>&gt;\r\n    &lt;svg width=\"18\" height=\"18\"&gt;&lt;use xlink:href=\"#icon-help\"&gt;&lt;\/use&gt;&lt;\/svg&gt;\r\n&lt;\/a&gt;<\/pre>\n<h4 id=\"iconRel\">10. rel=&#8221;icon&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e2a\u6bd4\u8f83\u5e38\u7528\uff0c\u53ef\u4ee5\u6307\u5b9a\u7f51\u7ad9\u5c0f\u56fe\u6807\u3002<\/p>\n<p>\u6307\u5b9a\u7f51\u9875favicon\uff0c\u6211\u4eec\u5e38\u5e38\u4f1a\u5728<code>icon<\/code>\u7c7b\u578b\u524d\u9762\u52a0\u4e0a<code>shortcut<\/code> link\u7c7b\u578b\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"shortcut icon\" href=\"favicon.ico\" \/&gt;<\/pre>\n<p>\u73b0\u5728\u5df2\u7ecf9021\u5e74\u4e86\uff0c<code>shortcut<\/code>\u8fd9\u79cdlink\u7c7b\u578b\u65e9\u5df2\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u6d4f\u89c8\u5668\u76f4\u63a5\u65e0\u89c6\uff0c\u56e0\u6b64\uff0c\u6ca1\u6709\u5fc5\u8981\u518d\u4f7f\u7528\u4e86\uff0c\u6211\u4eec\u76f4\u63a5\u4f7f\u7528<code>icon<\/code>\u7c7b\u578b\u5373\u53ef\u3002<\/p>\n<p><span class=\"s\">\/\/zxx: \u6839\u636e\u70ed\u5fc3\u5c0f\u4f19\u4f34\u8bc4\u8bba\u53cd\u9988\uff0c\u589e\u52a0\u539f\u56e0\u8bf4\u660e\u3002\uff08\u66f4\u65b0\u4e8e2019-06-21\uff09<\/span><\/p>\n<blockquote><p>\u53c2\u8003\u4e0b \u5927\u6f20\u7684\u300a\u5f04\u61c2Favicon\u300b\u4e00\u6587\u7684\u8bf4\u6cd5 \u201cIE 5\u672c\u6253\u7b97\u7528shortcut icon\u6765\u8868\u793a\u9875\u9762\u548c\u56fe\u6807\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u4f46\u662f\u5f53\u8fd9\u4efd\u89c4\u8303\u628arel\u5c5e\u6027\u503c\u6240\u8868\u793a\u7684\u5173\u7cfb\u7528\u7a7a\u683c\u5206\u5f00\u540e\uff0c\u8fd9\u6837\u7406\u8bba\u4e0ashortcut icon\u662f\u521b\u5efa\u4e86\u4e24\u79cd\u5173\u7cfb\uff0c\u5373shortcut\u548cicon\u3002\u76f4\u52302010\u5e74HTML5\u89c4\u8303\u628aicon\u5355\u72ec\u4f5c\u4e3a\u6807\u51c6\u6807\u8bc6\u7b26\u3002\u6240\u4ee5\uff0c\u5728\u975eIE\u6d4f\u89c8\u5668\u4e2d\u6307\u5b9afavicon\u65f6\uff0c\u53ef\u4ee5\u4e0d\u52a0shortcut\u5c5e\u6027\u3002\u201d\n<\/p><\/blockquote>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"icon\" href=\"favicon.ico\" \/&gt;<\/pre>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528PNG\u683c\u5f0f\u7684\u56fe\u50cf\u4f5c\u4e3afavicon\uff0c\u5982\u679c\u662f\u591a\u4e2aicon\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>type<\/code>\u6216\u8005<code>sizes<\/code>\u7b49\u5c5e\u6027\u6307\u5b9a\u4e0d\u540c\u7684\u7c7b\u578b\u548c\u5c3a\u5bf8\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"icon\" type=\"image\/png\" href=\"\/path\/to\/icons\/favicon-16x16.png\" sizes=\"16x16\"&gt;\r\n&lt;link rel=\"icon\" type=\"image\/png\" href=\"\/path\/to\/icons\/favicon-32x32.png\" sizes=\"32x32\"&gt;\r\n...<\/pre>\n<p>favicon\u5982\u679c\u6df1\u5165\uff0c\u6d89\u53ca\u5230\u7684\u77e5\u8bc6\u70b9\u4f1a\u5f88\u591a\uff0c\u8fd9\u91cc\u4e0d\u5c55\u5f00\uff0c\u4e4b\u540e\u4f1a\u4e13\u95e8\u5199\u6587\u7ae0\u4ecb\u7ecd\u3002<\/p>\n<p><!-- https:\/\/stackoverflow.com\/questions\/2268204\/favicon-dimensions --><\/p>\n<h4 id=\"importRel\">11. rel=&#8221;import&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5c31\u662fHTML Imports\uff0cWeb Components\u5f00\u53d1\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u4e4b\u4e00\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"import\" href=\"module.html\"&gt;<\/pre>\n<p>HTML Imports\u5c45\u7136\u6ca1\u6709\u4e13\u95e8\u5199\u6587\u7ae0\u4ecb\u7ecd\uff0c\u5931\u7b56\uff0c\u8fd9\u4e2a\u56de\u5934\u8865\u4e0a\u3002<\/p>\n<h4 id=\"indexRel\">12. rel=&#8221;index&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u8d85\u94fe\u63a5\u6307\u5411\u7684\u9875\u9762\u8d44\u6e90\u662f\u67d0\u4e2a\u5177\u6709\u5c42\u7ea7\u7ed3\u6784\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<p>\u5982\u679c\u8fd8\u5b58\u5728\u4e00\u4e2a\u6216\u591a\u4e2a<code>up<\/code>\u94fe\u63a5\u7c7b\u578b\uff0c\u5219<code>up<\/code>\u94fe\u63a5\u7c7b\u578b\u7684\u6570\u76ee\u8868\u793a\u5c42\u6b21\u7ed3\u6784\u4e2d\u5f53\u524d\u9875\u9762\u7684\u6df1\u5ea6\u3002<\/p>\n<p>\u8fd9\u4e2a\u5c5e\u6027\u5728HTML5\u89c4\u8303\u51fa\u6765\u4e4b\u540e\u5c31\u5df2\u7ecf\u88ab\u820d\u5f03\u4e86\uff0c\u5927\u5bb6\u4e86\u89e3\u5373\u53ef\u3002<\/p>\n<h4 id=\"lastRel\">13. rel=&#8221;last&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u6307\u5411\u5e8f\u5217\u9875\u9762\u7684\u6700\u540e\u4e00\u4e2a\u9875\u9762\u3002\u5176\u5b83\u7c7b\u4f3c\u7684rel\u94fe\u63a5\u8d44\u6e90\u7c7b\u578b\u6709 <code>first<\/code>\uff0c<code>prev<\/code>\u548c<code>next<\/code>\u3002<\/p>\n<h4 id=\"licenseRel\">14. rel=&#8221;license&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>license\u8bed\u4e49\u662f\u8bb8\u53ef\u8bc1\uff0c\u4f60\u4e5f\u53ef\u4ee5\u7406\u89e3\u4e3a\u7248\u6743\u8bf4\u660e\u3002\u4f8b\u5982\u4e00\u4e2a\u6307\u5411MIT license\u8bf4\u660e\u6216\u8005BSD license\u8bf4\u660e\u7684\u8d85\u94fe\u63a5\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u6b64<code>rel<\/code>\u5c5e\u6027\u503c\u3002<\/p>\n<pre>&lt;a href=\"\/somesite\/bsd-license\" rel=\"license\"&gt;BSD license&lt;\/a&gt;<\/pre>\n<p><code>copyright<\/code>\u8fd9\u4e2a\u503c\u867d\u7136\u540c\u4e49\uff0c\u4e5f\u80fd\u8bc6\u522b\uff0c\u4f46\u662f\u662f\u4e0d\u6b63\u786e\u7684\u8bf7\u4e0d\u8981\u4f7f\u7528\u3002<\/p>\n<h4 id=\"manifestRel\">15. rel=&#8221;manifest&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6307\u5b9a\u6e05\u5355\u6587\u4ef6\uff0c\u7528\u505aWeb\u5e94\u7528\u7a0b\u5e8f\u6e05\u5355\u90e8\u7f72\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"manifest\" href=\"\/manifest.webmanifest\"&gt;<\/pre>\n<p><code>.webmanifest<\/code>\u662f\u7ea6\u5b9a\u4fd7\u6210\u6269\u5c55\u540d\uff0c\u8fd4\u56de\u6587\u4ef6\u5185\u5bb9\u7c7b\u578b\u9700\u8981\u662f\uff1a<code>Content-Type: application\/manifest+json<\/code>\uff0c\u4e5f\u652f\u6301<code>.json<\/code>\u6269\u5c55\u540d\u7684\u6e05\u5355\u6587\u4ef6\u3002<\/p>\n<p>manifest\u53ef\u4ee5\u8ba9webapp\u53d8\u5f97\u66f4\u52a0native\uff0c\u79bb\u7ebf\u5f00\u53d1\u65f6\u5019\u4e5f\u5f88\u6709\u7528\u3002<\/p>\n<h4 id=\"modulepreloadRel\">16. rel=&#8221;modulepreload&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>modulepreload<\/code>\u53ef\u4ee5\u7528\u6765\u9884\u52a0\u8f7d\u539f\u751f\u6a21\u5757\u811a\u672c\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;head&gt;\r\n  &lt;link rel=\"modulepreload\" href=\"super-critical-stuff.mjs\"&gt;\r\n&lt;\/head&gt;\r\n<span style=\"color:gray;\">[...]<\/span>\r\n&lt;script type=\"module\" src=\"super-critical-stuff.mjs\"&gt;<\/pre>\n<p>\u4e3a\u4f55\u4e0d\u4f7f\u7528<code>&lt;link rel=\"preload\"&gt;<\/code>\u52a0\u8f7d\u6a21\u5757JS\u5462\uff1f\u56e0\u4e3a<code>&lt;script type=\"module\"&gt;<\/code>\u6ca1\u6709<code>crossorigin<\/code>\u5c5e\u6027\uff0c\u548c\u666e\u901a\u7684<code>&lt;script&gt;<\/code>\u3001<code>&lt;link&gt;<\/code>\u5143\u7d20\u4e0d\u4e00\u6837\u3002\u66f4\u591a\u5173\u4e8e<code>modulepreload<\/code>\u77e5\u8bc6\u53ef\u4ee5\u53c2\u89c1<a href=\"https:\/\/developers.google.com\/web\/updates\/2017\/12\/modulepreload\" rel=\"noopener nofollow\" target=\"_blank\">\u8fd9\u7bc7\u6587\u7ae0<\/a>\u3002<\/p>\n<h4 id=\"nextRel\">17. rel=&#8221;next&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u6307\u5411\u5e8f\u5217\u9875\u9762\u7684\u4e0b\u4e00\u4e2a\u9875\u9762\u3002\u5176\u5b83\u7c7b\u4f3c\u7684rel\u94fe\u63a5\u8d44\u6e90\u7c7b\u578b\u6709 <code>first<\/code>\uff0c<code>last<\/code>\u548c<code>prev<\/code>\u3002<\/p>\n<h4 id=\"nofollowRel\">18. rel=&#8221;nofollow&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&lt;link&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>rel=nofollow<\/code>\u53ef\u8ba9\u7f51\u7ad9\u7ad9\u957f\u544a\u8bc9\u641c\u7d22\u5f15\u64ce\u201c\u4e0d\u8981\u8ddf\u8e2a\u6b64\u7f51\u9875\u4e0a\u7684\u94fe\u63a5\u201d\u6216\u201c\u4e0d\u8981\u8ddf\u8e2a\u6b64\u7279\u5b9a\u94fe\u63a5\u201d\u3002<\/p>\n<p>\u4f8b\u5982\u767b\u5f55\u9875\u9762\u65e0\u9700\u6293\u53d6\uff0c\u53ef\u4ee5\uff1a<\/p>\n<pre>&lt;a href=\"signin.php\" <span style=\"color:#cd0000;\">rel=\"nofollow\"<\/span>&gt;\u767b\u5f55&lt;\/a&gt;<\/pre>\n<p>\u4f46\u662f\uff0c\u4e0d\u540c\u641c\u7d22\u5f15\u64ce\u7b56\u7565\u4e0d\u4e00\u6837\uff0c\u81f3\u5c11Google\u662f\u4e0d\u6293\u53d6\u7684\u3002<\/p>\n<h4 id=\"noopenerRel\">19. rel=&#8221;noopener&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&lt;link&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u4e14\u5e38\u7528\u7684<code>rel<\/code>\u5c5e\u6027\u503c\uff0c\u4e0e\u5b89\u5168\u76f8\u5173\u3002<\/p>\n<p>\u5982\u679c\u6211\u4eec\u7684\u94fe\u63a5\u5143\u7d20\u6ca1\u6709\u8bbe\u7f6e<code>noopener<\/code>\uff0c\u5219\u5728\u65b0\u7a97\u53e3\u6253\u5f00\u8fd9\u4e2a\u94fe\u63a5\u7684\u65f6\u5019\uff0c\u5219\u8fd9\u4e2a\u65b0\u7a97\u53e3\u9875\u9762\u53ef\u4ee5\u901a\u8fc7<code>window.opener<\/code>\u83b7\u53d6\u6765\u6e90\u9875\u9762\u7684\u7a97\u4f53\u5bf9\u8c61\uff0c\u4e8e\u662f\u53ef\u4ee5\u6539\u53d8\u539f\u9875\u9762URL\u5730\u5740\u4e4b\u7c7b\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u4f8b\u5982\u8fd9\u91cc\u6709\u4e2a\u540d\u4e3a\u201c<a href=\"https:\/\/mathiasbynens.github.io\/rel-noopener\/\" rel=\"noopener nofollow\" target=\"_blank\">About rel=noopener<\/a>\u201d\u7684\u6d4b\u8bd5\u9875\u9762\uff0c\u6b64\u65f6URL\u5730\u5740\u662f\u201chttps:\/\/mathiasbynens.be\/demo\/opener\u201d\u3002<\/p>\n<p>\u70b9\u51fb\u6d4b\u8bd5\u9875\u9762\u4e0a\u524d\u4e24\u4e2a\u6d4b\u8bd5\u94fe\u63a5\uff08\u76f4\u63a5\u70b9\u51fb\uff0c\u4e0d\u8981\u6309\u4f4fCtrl\u952e\u518d\u70b9\u51fb\uff09\uff0c\u4f8b\u5982\u70b9\u51fb\u4e0b\u9762\u8fd9\u4e2a\u8de8\u57df\u5730\u5740\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-01_232120.png\" width=\"522\" height=\"210\" alt=\"\u8de8\u57df\u5730\u5740\u70b9\u51fb\u63d0\u793a\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6b64\u65f6\u4f1a\u8fdb\u5165\u53e6\u5916\u4e00\u4e2a\u4e0d\u540c\u57df\u540d\u7684\u6d4b\u8bd5\u9875\u9762\uff0c\u53ef\u4ee5\u770b\u5230\u57df\u540d\u548c\u6587\u6848\uff0c\u6211\u7ffb\u8bd1\u4e0b\u5c31\u662f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-01_232354.png\" width=\"574\" height=\"159\" alt=\"\u56de\u5230\u4e4b\u524d\u9875\u9762\u770b\u770b\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u5728\u56de\u5230\u4e4b\u524d\u9875\u9762\uff0c\u4f1a\u53d1\u73b0URL\u540e\u9762\u88ab\u6084\u6084\u5730\u589e\u52a0\u4e86\u4e00\u4e2a\u951a\u70b9\u5730\u5740\uff0c\u540c\u65f6\u9875\u9762\u4e0a\u51fa\u73b0\u4e86\u4e00\u4e9b\u6709\u8da3\u7684\u6587\u5b57\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-01_232619.png\" width=\"551\" height=\"276\" alt=\"\u5730\u5740\u88ab\u6539\u53d8\u4e86\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u8fd9\u91cc\u4ec5\u4ec5\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6076\u4f5c\u5267\uff0c\u5b9e\u9645\u4e0a\u5982\u679c\u662f\u771f\u5b9e\u7684\u9875\u9762\u573a\u666f\uff0c\u4e0d\u6000\u597d\u610f\u7684\u4eba\u53ef\u4ee5\u628a\u4f60\u8fd9\u4e2a\u539f\u9875\u9762\u8df3\u8f6c\u5230\u4e00\u4e2a\u9ad8\u4eff\u7684\u8bc8\u9a97\u9875\u9762\uff0c\u662f\u4e0d\u662f\u5f88\u5371\u9669\u7684\u4e00\u4ef6\u4e8b\u60c5\uff1f<\/p>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u60a8\u7684\u7f51\u7ad9\u4e0a\u6709\u5916\u90e8\u7684\u94fe\u63a5\u5730\u5740\uff0c\u4e00\u5b9a\u8981\u8bb0\u5f97\u52a0\u4e0a<code>noopener<\/code>\u3002<\/p>\n<h4 id=\"noreferrerRel\">20. rel=&#8221;noreferrer&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&lt;link&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f53\u5bfc\u822a\u5230\u5176\u4ed6\u9875\u9762\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u963b\u6b62\u6d4f\u89c8\u5668\u5411\u8df3\u8f6c\u9875\u9762\u53d1\u9001\u9875\u9762\u5730\u5740\u4ee5\u53ca\u5176\u4ed6\u503c\u3002<\/p>\n<p>\u770b\u63cf\u8ff0\u4ee5\u4e3a\u4f5c\u7528\u548c\u5728\u9875\u9762\u5934\u90e8\u8bbe\u7f6ereferer meta\u4fe1\u606f\u4e00\u6837\uff1a<\/p>\n<pre>&lt;meta name=\"referrer\" content=\"no-referrer\"&gt;\r\n<\/pre>\n<p>\u7ed3\u679c\u5728Firefox\u4ee5\u53caChrome\u6d4f\u89c8\u5668\u4e0b\u6d4b\u8bd5\u4e86\u4e0b\uff0c\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u6211\u6253\u5f00\u65b9\u5f0f\u7684\u7684\u95ee\u9898\uff0c\u6ca1\u6709\u6548\u679c\u3002\u4f8b\u5982\u65b0\u6d6a\u5fae\u535a\u56fe\u5e8a\u56fe\u7247\u524d\u6bb5\u65f6\u95f4\u4e0d\u5141\u8bb8\u5916\u7ad9\u8bbf\u95ee\u4e86\uff0c\u4f46\u662f\u8bbe\u7f6ereferrer\u4e3a<code>no-referrer<\/code>\u662f\u53ef\u4ee5\u5448\u73b0\u7684\uff0c\u4f46\u662f\u4f7f\u7528<code>rel=\"noreferrer\"<\/code>\u94fe\u63a5\u6d4b\u8bd5\u7684\u65f6\u5019\u4f9d\u7136\u65e0\u6cd5\u663e\u793a\u3002<\/p>\n<p>\u540e\u6765\u6211\u7ffb\u4e86\u4e0b\uff0c\u6211\u4e4b\u524d\u6709\u4e00\u7bc7<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2017\/02\/js-page-url-document-referrer\/\">\u5173\u4e8edocument.referrer\u7684\u72d7\u7cae\u6587<\/a>\uff0c\u5176\u4e2d\u6709\u63d0\u5230<code>rel=\"noreferrer\"<\/code>\u3002\u90a3\u5c31\u662f\u5982\u4f55\u9875\u9762\u662f\u901a\u8fc7\u8bbe\u7f6e\u4e86<code>rel=\"noreferrer\"<\/code>\u7684<code>&lt;a&gt;<\/code>\u5143\u7d20\u8bbf\u95ee\uff0c\u5219\u6b64\u65f6<code>document.referrer<\/code>\u662f\u7a7a\uff0c\u6ca1\u6709\u6765\u6e90\u3002<\/p>\n<h4 id=\"openerRel\">21. rel=&#8221;opener&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&lt;link&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u662f\u4e2a\u8fd8\u5904\u4e8e\u5b9e\u9a8c\u9636\u6bb5\u7684\u65b0\u7279\u6027\u3002<code>opener<\/code>\u548c<code>noopener<\/code>\u7684\u8bed\u4e49\u5b8c\u5168\u662f\u76f8\u53cd\u7684\uff0c\u8868\u793a\u8d85\u94fe\u63a5\u51fa\u53bb\u7684\u9875\u9762\u6709<code>window.opener<\/code>\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u4e2a\u5c5e\u6027\u503c\u5462\uff1f<\/p>\n<p>\u56e0\u4e3a2018\u5e7410\u670810\u65e5\u201c\u840c\u8282\u201d\u8fd9\u5929\uff0ccdume\u5728related HTML\u89c4\u8303\u8ba8\u8bba\u4e2d\u53d1\u8868\u4e86\u5982\u4e0b\u63d0\u8bae\uff1a<\/p>\n<blockquote><p>Windows opened via &lt;a target=_blank&gt; should not have an opener by default<\/p><\/blockquote>\n<p>\u4e5f\u5c31\u662f\u8bbe\u7f6e\u4e86<code>target=_blank<\/code>\u7684<code>&lt;a&gt;<\/code>\u5143\u7d20\u9ed8\u8ba4\u5c31\u6ca1\u6709<code>opener<\/code>\uff0c\u8fd9\u6837\u66f4\u5b89\u5168\u3002\u6536\u5230\u5f88\u591a\u70b9\u8d5e\uff0c\u89c4\u8303\u4e5f\u4f1a\u8ddf\u8fdb\u3002\u4e8e\u662f\u5c31\u6709\u95ee\u9898\u4e86\uff0c\u5982\u679c\u5f00\u53d1\u8005\u5e0c\u671b\u9875\u9762\u6709opener\u8be5\u600e\u4e48\u5904\u7406\u5462\uff1f<\/p>\n<p>\u4e8e\u662f\u5c31\u6709\u4e86<code>rel=\"opener\"<\/code>\uff0c\u5982\u679c\u4e00\u4e2a\u94fe\u63a5\u5143\u7d20\u8bbe\u7f6e\u4e86<code>target=_blank<\/code>\uff0c\u540c\u65f6\u5e0c\u671b\u65b0\u5f00\u9875\u9762\u6709<code>window.opener<\/code>\u5bf9\u8c61\uff0c\u5219\u53ef\u4ee5\u7ed9\u94fe\u63a5\u5143\u7d20\u6dfb\u52a0<code>rel=\"opener\"<\/code>\u3002<\/p>\n<h4 id=\"pingbackRel\">22. rel=&#8221;pingback&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>pingback\u4f30\u8ba1\u4e86\u89e3\u7684\u5f00\u53d1\u4eba\u5458\u4e0d\u591a\uff0c\u5982\u679c\u662fwordpress\u8d44\u6df1\u7528\u6237\uff0c\u5e94\u8be5\u4f1a\u6bd4\u8f83\u719f\u6089\u3002\u5728\u8fd0\u7ba1WordPress\u535a\u5ba2\u7684\u65f6\u5019\uff0c\u540e\u53f0\u8bc4\u8bba\u7ecf\u5e38\u770b\u5230\u6765\u81ea\u67d0\u4e00\u7bc7\u6587\u7ae0\u7684pingback\uff0c\u8868\u793a\u4f60\u8fd9\u7bc7\u6587\u7ae0\u88ab\u5f15\u7528\u4e86\u3002pingback\u53ef\u4ee5\u8ba9Web\u4f5c\u8005\u8ffd\u8e2a\u4ec0\u4e48\u4eba\u94fe\u63a5\u81f3\u4ed6\u7684\u6587\u7ae0\u3002<\/p>\n<p>pingback\u6709\u4e13\u95e8\u7684\u8c03\u7528\u4e0e\u534f\u8bae\u89c4\u8303\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u53c2\u89c1<a href=\"http:\/\/www.hixie.ch\/specs\/pingback\/pingback\" rel=\"noopener nofollow\" target=\"_blank\">pingback 1.0\u89c4\u8303<\/a>\u3002<\/p>\n<p>\u4f8b\u5982\u6211\u7684\u535a\u5ba2\u5934\u90e8HTML\u4e2d\u5c31\u6709\u76f8\u5173\u4f7f\u7528\uff1a<\/p>\n<pre>&lt;link rel=\"pingback\" href=\"https:\/\/www.zhangxinxu.com\/wordpress\/xmlrpc.php\" \/&gt;<\/pre>\n<h4 id=\"preconnectRel\">23. rel=&#8221;preconnect&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u9a8c\u9636\u6bb5\u5c5e\u6027\u503c\u3002\u7531\u4e8e\u662f\u6e10\u8fdb\u589e\u5f3a\u7279\u6027\uff0c\u56e0\u6b64\uff0c\u53ef\u4ee5\u653e\u5fc3\u4f7f\u7528\u3002<\/p>\n<p>\u4f5c\u7528\u662f\u544a\u77e5\u6d4f\u89c8\u5668\u63d0\u524d\u8fde\u63a5\u94fe\u63a5\u5730\u5740\u5bf9\u5e94\u7ad9\u70b9\uff0c\u4e0d\u8fc7\u53ea\u662f\u8fde\u63a5\uff0c\u5e76\u4e0d\u4f1a\u516c\u5f00\u4efb\u4f55\u79c1\u4eba\u4fe1\u606f\u6216\u8005\u4e0b\u8f7d\u4efb\u4f55\u5185\u5bb9\u3002\u597d\u5904\u662f\u6253\u5f00\u94fe\u63a5\u5185\u5bb9\u7684\u65f6\u5019\u53ef\u4ee5\u66f4\u5feb\u7684\u83b7\u53d6\uff08\u8282\u7ea6\u4e86 DNS \u67e5\u8be2\u3001\u91cd\u5b9a\u5411\u4ee5\u53ca\u6307\u5411\u5904\u7406\u7528\u6237\u8bf7\u6c42\u7684\u6700\u7ec8\u670d\u52a1\u5668\u7684\u82e5\u5e72\u5f80\u8fd4\uff09\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"preconnect\" href=\"https:\/\/www.zhangxinxu.com\"&gt;<\/pre>\n<p>\u4e0a\u9762\u8fd9\u6bb5HTML\u4f5c\u7528\u662f\u6d4f\u89c8\u5668\u77e5\u9053\u6211\u4eec\u6253\u7b97\u8fde\u63a5\u5230 www.zhangxinxu.com \u5e76\u4ece\u5176\u4e2d\u83b7\u53d6\u5185\u5bb9\uff0c\u7136\u540e\u6d4f\u89c8\u5668\u4f1a\u63d0\u524d\u505a\u597d\u8fde\u63a5\u3002<\/p>\n<p>\u4f46\u662f<code>preconnect<\/code>\u5e76\u4e0d\u662f\u6ca1\u6709\u6210\u672c\u7684\uff0c\u5343\u4e07\u4e0d\u80fd\u6ee5\u7528\u3002<code>&lt;link rel=\"preconnect\"&gt;<\/code>\u4f1a\u5360\u7528\u5b9d\u8d35\u7684 CPU \u65f6\u95f4\uff0c\u5982\u679c\u7528\u6237\u6ca1\u6709\u5728 10 \u79d2\u5185\u4f7f\u7528\u8be5\u8fde\u63a5\uff0c\u8d44\u6e90\u6d6a\u8d39\u7684\u60c5\u51b5\u5c31\u4f1a\u53d8\u5f97\u66f4\u4e25\u91cd\uff0c\u56e0\u4e3a\u5f53\u6d4f\u89c8\u5668\u5173\u95ed\u8fde\u63a5\u65f6\uff0c\u6240\u6709\u5df2\u5b8c\u6210\u7684\u8fde\u63a5\u90fd\u5c06\u906d\u5230\u6d6a\u8d39\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5c3d\u53ef\u80fd\u4f7f\u7528 <code>&lt;link rel=\"preload\"&gt;<\/code>\uff0c\u4e00\u4e9b\u7279\u6b8a\u573a\u666f\u4e0b\u4f7f\u7528 <code>&lt;link rel=\"preconnect\"&gt;<\/code>\u3002 <\/p>\n<h4 id=\"prefetchRel\">24. rel=&#8221;prefetch&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;\uff08&lt;a&gt;\u3001&lt;area&gt;\u4e4b\u540e\u53ef\u80fd\u4f1a\u5b9e\u73b0\uff09<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>prefetch<\/code>\u8868\u793a\u9884\u83b7\u53d6\uff0c\u901a\u5e38\u662f\u4e00\u4e9b\u9759\u6001\u8d44\u6e90\u3002\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;link rel=\"prefetch\" href=\"(url)\"&gt;<\/pre>\n<p>prefetch \u6700\u9002\u5408\u62a2\u5360\u7528\u6237\u4e0b\u4e00\u6b65\u53ef\u80fd\u8fdb\u884c\u7684\u64cd\u4f5c\u5e76\u4e3a\u5176\u505a\u597d\u51c6\u5907\uff0c\u4f8b\u5982\u641c\u7d22\u7ed3\u679c\u5217\u8868\u4e2d\u9996\u4e2a\u4ea7\u54c1\u7684\u8be6\u60c5\u9875\u9762\u6216\u641c\u7d22\u5206\u9875\u5185\u5bb9\u7684\u4e0b\u4e00\u9875\u3002<\/p>\n<pre>&lt;link rel=\"prefetch\" href=\"page-2.html\"&gt;<\/pre>\n<p>prefetch\u517c\u5bb9\u6027\u8fd8\u4e0d\u9519\uff0c\u9664\u4e86\u76ee\u524dSafari\u4e0d\u652f\u6301\u4ee5\u4e3a\uff0c\u5176\u4ed6\u6d4f\u89c8\u5668\u90fd\u633a\u4e0d\u9519\u7684\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-02_225353.png\" width=\"677\" height=\"240\" alt=\"prefetch\u517c\u5bb9\u6027\u622a\u56fe\" class=\"alignnone size-medium\" \/><\/p>\n<h4 id=\"preloadRel\">25. rel=&#8221;preload&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>preload<\/code>\u8868\u793a\u9884\u52a0\u8f7d\u3002\u544a\u8bc9\u6d4f\u89c8\u5668\u8fd9\u4e9b\u8d44\u6e90\u4f60\u5148\u5e2e\u6211\u52a0\u8f7d\uff0c\u4e4b\u540e\u6211\u8981\u4f7f\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"preload\" as=\"script\" href=\"super-important.js\"&gt;\r\n&lt;link rel=\"preload\" as=\"style\" href=\"critical.css\"&gt;<\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0c&lt;link rel=&#8221;preload&#8221;&gt;\u662f\u5f3a\u5236\u6d4f\u89c8\u5668\u6267\u884c\u7684\u6307\u4ee4\uff0c\u4e0d\u53ea\u662f\u53ef\u9009\u63d0\u793a\uff0c\u4e0e\u4e0a\u9762\u7684<code>preconnect<\/code>\u548c<code>prefetch<\/code>\u662f\u4e0d\u4e00\u6837\u7684\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u4f7f\u7528<code>preload<\/code>\u65f6\u4e00\u5b9a\u8981\u4fdd\u8bc1\u5185\u5bb9\u4f1a\u88ab\u4f7f\u7528\uff0c\u5982\u679c\u63d0\u53d6\u7684\u8d44\u6e903\u79d2\u5185\u6ca1\u6709\u88ab\u5f53\u524d\u9875\u9762\u4f7f\u7528\uff0cChrome\u5f00\u53d1\u8005\u5de5\u5177\u7684\u63a7\u5236\u53f0\u4f1a\u89e6\u53d1\u8b66\u544a\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/res-prio-timeout.png\" width=\"525\" height=\"122\" alt=\"preload\u8b66\u544a\u63d0\u793a\" class=\"alignnone size-medium\" \/><\/p>\n<p><code>preload<\/code>\u7684\u517c\u5bb9\u6027\u5982\u4e0b\u622a\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-02_230501.png\" width=\"592\" height=\"209\" alt=\"preload\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u867d\u7136Safari\u6d4f\u89c8\u5668\u652f\u6301\u4e86\uff0c\u4f46\u662fFirefox\u5374\u8fd8\u9700\u8981\u624b\u52a8\u5f00\u542f\uff0c\u4e0d\u8fc7\u770b\u6837\u5b50Firefox\u5f88\u5feb\u5c31\u4f1a\u7eff\u8272\u652f\u6301\u4e86\u3002\u603b\u4e4b\uff0c\u517c\u5bb9\u6027\u8fd8\u662f\u53ef\u4ee5\u7684\uff0c\u53ef\u4ee5\u7528\u8d77\u6765\uff0c\u4f18\u5316\u7f51\u9875\u8d44\u6e90\u7684\u5f00\u53d1\u4e0e\u8c03\u7528\u3002<\/p>\n<h4 id=\"prerenderRel\">26. rel=&#8221;prerender&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>prerender<\/code>\u8868\u793a\u9884\u6e32\u67d3\u3002\u544a\u77e5\u6d4f\u89c8\u5668\u5728\u80cc\u540e\u5148\u9ed8\u9ed8\u6e32\u67d3\u9875\u9762\uff0c\u5f53\u7528\u6237\u4e4b\u540e\u5bfc\u822a\u5230\u8fd9\u4e2a\u9875\u9762\u65f6\u5019\u4f1a\u5927\u5927\u52a0\u5feb\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n<p>\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;link rel=\"prerender\" href=\"(url)\"&gt;<\/pre>\n<p>\u548c<code>prefetch<\/code>\u533a\u522b\u5728\u4e8e\uff0c<code>prefetch<\/code>\u83b7\u53d6\u9875\u9762\u5e76\u4e0d\u4f1a\u52a0\u8f7d\u9875\u9762\u4e2d\u7684css\u548cjs\u8d44\u6e90\uff0c\u66f4\u591a\u662f\u9875\u9762\u672c\u8eab\uff0c\u4f46\u662f<code>prerender<\/code>\u5df2\u7ecf\u5728\u80cc\u540e\u9ed8\u9ed8\u505a\u8d77\u6e32\u67d3\u7684\u4e8b\u60c5\uff0c\u9884\u5904\u7406\u8981\u66f4\u8fdb\u4e00\u6b65\u3002<\/p>\n<p>\u76ee\u524d\u517c\u5bb9\u6027\u4e0d\u7b97\u5f88\u597d\uff0c\u4e5f\u5c31Chrome PC\u7aef\u652f\u6301\u4e0d\u9519\uff0c\u4e14\u4e5f\u662f\u521a\u652f\u6301\u4e0d\u4e45\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-02_231152.png\" width=\"589\" height=\"250\" alt=\"s\" class=\"alignnone size-medium\" \/><\/p>\n<h4 id=\"prevRel\">27. rel=&#8221;prev&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u6307\u5411\u5e8f\u5217\u9875\u9762\u7684\u4e0a\u4e00\u4e2a\u9875\u9762\u3002\u5176\u5b83\u7c7b\u4f3c\u7684<code>rel<\/code>\u94fe\u63a5\u8d44\u6e90\u7c7b\u578b\u6709 <code>first<\/code>\uff0c<code>last<\/code>\u548c<code>next<\/code>\u3002<\/p>\n<h4 id=\"searchRel\">28. rel=&#8221;search&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u94fe\u63a5\u5730\u5740\u662f\u5f53\u524d\u7f51\u7ad9\u6216\u8d44\u6e90\u5bf9\u4e8e\u7684\u641c\u7d22\u6587\u6863\u63a5\u53e3\u9875\u9762\u3002<\/p>\n<p>\u4ee5\u53ca\u5176\u4ed6\u4e00\u4e9b\u7c7b\u4f3c\u63d2\u4ef6\u7684\u4f5c\u7528\u3002\u4f8b\u5982\u6211\u4eec\u8bbe\u7f6e<code>type<\/code>\u5c5e\u6027\u503c\u4e3a<code>application\/opensearchdescription+xml<\/code>\uff0c\u5219\u5bf9\u5e94\u7684\u8d44\u6e90\uff08<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/OpenSearch\" rel=\"noopener nofollow\" target=\"_blank\">OpenSearch\u63cf\u8ff0\u6587\u4ef6<\/a>\uff09\u53ef\u4ee5\u4f5c\u4e3aFirefox\u6216\u8005Internet Explorer\u7684\u641c\u7d22\u63d2\u4ef6\u3002<\/p>\n<p>\u4f8b\u5982\u5728<code>&lt;head&gt;<\/code>\u6807\u7b7e\u91cc\u52a0\u4e0a\uff1a<\/p>\n<pre>&lt;link rel=\"search\" type=\"application\/opensearchdescription+xml\" href=\"provider.xml\" title=\"\u5173\u952e\u8bcd\u641c\u7d22\" \/&gt;<\/pre>\n<p>provider.xml\u7684\u5185\u5bb9\u4e3a\uff1a<\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;OpenSearchDescription xmlns=\"http:\/\/a9.com\/-\/spec\/opensearch\/1.1\/\"&gt;\r\n\u3000&lt;InputEncoding&gt;UTF-8&lt;\/InputEncoding&gt;\r\n\u3000&lt;ShortName&gt;\u5173\u952e\u8bcd\u641c\u7d22&lt;\/ShortName&gt;\r\n\u3000&lt;Description&gt;\u5173\u952e\u8bcd\u641c\u7d22&lt;\/Description&gt;\r\n\u3000&lt;Image height=\"16\" width=\"16\" type=\"image\/vnd.microsoft.icon\"&gt;\/favicon.ico&lt;\/Image&gt;\r\n\u3000&lt;Url type=\"text\/html\" template=\"\/wordpress\/?s={searchTerms}\" \/&gt;\r\n&lt;\/OpenSearchDescription&gt;<\/pre>\n<p>\u6211\u5f04\u4e2a\u4e86\u7b80\u5355\u7684<a href=\"https:\/\/www.zhangxinxu.com\/study\/201906\/rel-search.html\" rel=\"opener\" target=\"_blank\">\u9759\u6001\u9875\u9762<\/a>\u6d4b\u8bd5\u4e86\u4e0b\uff0c\u563f\u54df\u5582\uff0c\u771f\u7684\u53ef\u4ee5\uff08Firefox\u6d4f\u89c8\u5668\u4e0b\u622a\u56fe\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-02_233501.png\" width=\"412\" height=\"274\" alt=\"\u641c\u7d22\u680f\u591a\u4e86\u4e2a\u641c\u7d22\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u8fd9\u6837\uff0c\u7f51\u7ad9\u6240\u6709\u9875\u9762\uff0c\u5c31\u7b97\u6ca1\u6709\u641c\u7d22\u6846\u4e5f\u53ef\u4ee5\u641c\u7d22\u4e86\uff0c\u4e0d\u8fc7Chrome\u6d4f\u89c8\u5668\u5730\u5740\u680f\u6ca1\u641c\u7d22\u6846\uff0cFirefox\u548cIE\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u8fd9\u6295\u5165\u4ea7\u51fa\u6bd4\u6709\u4e9b\u4f4e\uff0c\u4e0d\u8fc7\u53ef\u4ee5\u4f5c\u4e3a\u6709\u8da3\u7684\u6848\u4f8b\u548c\u540c\u4e8b\u5206\u4eab\u5206\u4eab\u3002<\/p>\n<h4 id=\"shortlinkRel\">29. rel=&#8221;shortlink&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">\u4e0d\u8be6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7f51\u7ad9\u5f53\u524d\u9875\u9762\u5bf9\u5e94\u7684\u77ed\u94fe\u63a5\uff0c\u8fd9\u6837\u5206\u4eab\u94fe\u63a5\u7684\u65f6\u5019\u8981\u66f4\u5bb9\u6613\uff08\u5fae\u535a\u5b57\u6570\u9650\u5236\uff0c\u5fae\u4fe1\u6216QQ\u4e2d\u5730\u5740\u5448\u73b0\u7b49\uff09\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u7684\u8fd9\u7bc7\u535a\u5ba2\u6587\u7ae0\u5934\u90e8\u5c31\u6709<code>shortlink<\/code>\u7684\u5e94\u7528\uff0cHTML\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;link rel='shortlink' href='https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488' \/&gt;<\/pre>\n<h4 id=\"sidebarRel\">30. rel=&#8221;sidebar&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<td align=\"center\">&lt;link&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>sidebar<\/code>\u66fe\u7ecf\u662fHTML\u89c4\u8303\u7684\u4e00\u90e8\u5206\uff0c\u4f46\u662f\u6700\u8fd1\u5df2\u7ecf\u4ece\u89c4\u8303\u4e2d\u5220\u9664\u6389\u4e86\uff0cFirefox 63\u4e4b\u540e\u7684\u7248\u672c\u5df2\u7ecf\u4e0d\u652f\u6301\u3002\u8fd9\u91cc\u4e0d\u5c55\u5f00\uff0c\u5176\u8bed\u4e49\u5c31\u662f\u6307\u5411\u53ef\u4ee5\u5e2e\u52a9\u6d4f\u89c8\u4e8c\u7ea7\u6d4f\u89c8\u4e0a\u4e0b\u6587\u7684\u8d44\u6e90\uff0c\u4f8b\u5982\u4fa7\u8fb9\u680f\u3002<\/p>\n<h4 id=\"stylesheetRel\">31. rel=&#8221;stylesheet&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;link&gt;<\/td>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6307\u5411\u6837\u5f0f\u8868\u8d44\u6e90\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;link rel=\"stylesheet\" href=\".\/dashicons.min.css\" type=\"text\/css\" media=\"all\" \/&gt;<\/pre>\n<p>\u8fd9\u4e2a\u51e0\u4e4e\u6bcf\u4e00\u4e2a\u7f51\u9875\u90fd\u4f1a\u4f7f\u7528\uff0c\u5927\u5bb6\u5e94\u8be5\u90fd\u5f88\u719f\uff0c\u5c31\u4e0d\u591a\u8bf4\u4e86\u3002<\/p>\n<h4 id=\"tagRel\">32. rel=&#8221;tag&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;<\/td>\n<td align=\"center\">&lt;link&gt;\u3001&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u6307\u5411\u8868\u8ff0\u5f53\u524d\u6587\u6863\u6807\u7b7e\u7684\u94fe\u63a5\u3002\u4f8b\u5982wordpress\u6587\u7ae0\u4e2d\u7684\u6807\u7b7e\u94fe\u63a5\u90fd\u6709\u8bbe\u7f6e\u8be5\u5c5e\u6027\u503c\uff0c\u4f8b\u5982\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-02_235011.png\" width=\"512\" height=\"168\" alt=\"\u6807\u7b7e\u8bed\u4e49\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u56e0\u6b64SEO\u4f1a\u66f4\u52a0\u7cbe\u51c6\uff0c\u8d28\u91cf\u66f4\u9ad8\u3002<\/p>\n<h4 id=\"upRel\">33. rel=&#8221;up&#8221;<\/h4>\n<table border=\"0\" width=\"300\" class=\"params_table\" cellspacing=\"1\">\n<thead>\n<tr>\n<th>\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<th>\u4e0d\u5141\u8bb8\u4f7f\u7528\u7684\u94fe\u63a5\u5143\u7d20<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">&lt;a&gt;\u3001&lt;area&gt;\u3001&lt;link&gt;<\/td>\n<td align=\"center\">&lt;form&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8868\u793a\u5f53\u524d\u9875\u9762\u662f\u5c42\u6b21\u7ed3\u6784\u7684\u4e00\u90e8\u5206\uff0c\u5e76\u4e14\u8d85\u94fe\u63a5\u6307\u5411\u8be5\u7ed3\u6784\u7684\u66f4\u9ad8\u7ea7\u522b\u8d44\u6e90\u3002<\/p>\n<p><code>up<\/code>\u94fe\u63a5\u7c7b\u578b\u7684\u6570\u91cf\u8868\u793a\u5f53\u524d\u9875\u9762\u548c\u94fe\u63a5\u8d44\u6e90\u4e4b\u95f4\u7684\u6df1\u5ea6\u5dee\u3002<\/p>\n<h3>\u4e09\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u561b\u5440\uff0c\u4e0d\u7b80\u5355\uff0c1\u4e07\u4e09\u5343\u591a\u5b57\uff0c\u8fd9\u6837\u7684\u957f\u7bc7\u901a\u5e38\u6ca1\u4ec0\u4e48\u4eba\u4f1a\u8010\u5fc3\u770b\u5b8c\u7684\uff0c\u5386\u53f2\u7ecf\u9a8c\u544a\u8bc9\u6211\uff0cHTML\u8303\u7574\uff0c\u53c8\u662f\u5c0f\u4f17\u5c5e\u6027\uff0c\u5185\u5bb9\u53c8\u957f\uff0c\u867d\u7136\u662f\u7a00\u7f3a\u6280\u672f\u8d44\u6e90\u5185\u5bb9\uff0c\u4f46\u6ce8\u5b9a\u8981\u538b\u7bb1\u5e95\u843d\u7070\u3002<\/p>\n<p>\u4f46\u8fd9\u6837\u7684\u5185\u5bb9\u6070\u6070\u662f\u90a3\u4e9b\u771f\u6b63\u70ed\u7231\u6280\u672f\u7684\u4eba\u9700\u8981\u7684\uff0c\u629b\u5f00\u8868\u9762\u4e0e\u529f\u5229\uff0c\u505a\u771f\u6b63\u6709\u4ef7\u503c\uff0c\u4e14\u4ef7\u503c\u6df1\u8fdc\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u672c\u6587\u5f88\u591arel\u5c5e\u6027\u503c\u90fd\u662f\u53ea\u505a\u4e86\u7b80\u5355\u7684\u4ecb\u7ecd\uff0c\u504f\u5e7f\u5ea6\uff0c\u4ee5\u540e\u6709\u673a\u4f1a\uff0c\u4f1a\u4ece\u6df1\u5ea6\u89d2\u5ea6\u4ecb\u7ecd\u4e00\u4e9b\u5c5e\u6027\u503c\u3002<\/p>\n<p><strong>\u53c2\u8003\u6587\u6863\uff1a<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Link_types\" rel=\"noopener nofollow\" target=\"_blank\">Link_types<\/a><\/li>\n<li><a href=\"https:\/\/support.google.com\/webmasters\/answer\/139066?hl=zh-Hans\" rel=\"noopener nofollow\" target=\"_blank\">\u6574\u5408\u91cd\u590d\u7f51\u5740<\/a><\/li>\n<li><a href=\"https:\/\/support.google.com\/webmasters\/answer\/96569?hl=zh-Hans\" rel=\"noopener nofollow\" target=\"_blank\">\u5bf9\u7279\u5b9a\u94fe\u63a5\u4f7f\u7528rel=&#8221;nofollow&#8221;<\/a><\/li>\n<li><a href=\"https:\/\/developers.google.com\/web\/fundamentals\/performance\/resource-prioritization?hl=zh-cn\" rel=\"noopener nofollow\" target=\"_blank\">\u8d44\u6e90\u4f18\u5148\u7ea7 \u2013 \u8ba9\u6d4f\u89c8\u5668\u52a9\u60a8\u4e00\u81c2\u4e4b\u529b<\/a><\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\uff0c\u611f\u8c22\u9605\u8bfb\u5230\u8fd9\u91cc\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f618.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5185\u5bb9\u4f60\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u4ee5\u52a0\u5165\u6536\u85cf\u5939\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u800c\u4e14\u8fd8\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8488<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/html-rel.jpg\" width=\"161\" height=\"102\" class=\"alignright size-medium\" \/><\/p>\n<p>\u672c\u6587\u4ecb\u7ecdHTML\u4e2d33\u4e2arel\u5c5e\u6027\u503c\u53ca\u5176\u5bf9\u5e94\u7684\u542b\u4e49\uff0c\u8fd933\u4e2a\u5c5e\u6027\u503c\u5404\u6709\u5343\u79cb\uff0c\u6db5\u76d6web\u5f00\u53d1\u65b9\u65b9\u9762\u9762\uff0c\u6216SEO\u6216\u529f\u80fd\u5f00\u53d1\u6216\u6027\u80fd\u4f18\u5316\u7b49\uff0c\u9605\u8bfb\u524d\u8bf7\u9884\u7559\u8db3\u591f\u7684\u65f6\u95f4\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1097],"tags":[1412,1124,1433,607,9,1413,1150,1426,1425,1432,1428,1431,1067,1430,1429,1098,1411,1427],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8488"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=8488"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8488\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=8488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=8488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=8488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}