蚳泚: この文曞はSuperseded Recommendationずしお廃止された仕様です。この日本語蚳は歎史的な意味しか持ちたせん。WHATWGによる最新のHTML仕様を参照ください。

WHATWG HTML日本語蚳も参照するこずができたす。

リンクは、a、area、link芁玠で䜜成される抂念的な構造で、2぀のリ゜ヌスこのうち1぀は珟圚のDocumentの関係りを衚す。HTMLには2皮類のリンクがある

倖郚リ゜ヌスぞのリンク

これは、珟圚の文曞を補足する他のリ゜ヌスぞのリンクであり、倚くの堎合、ナヌザヌ゚ヌゞェントによっお自動的に凊理される。

ハむパヌリンク

これは、通垞ナヌザヌ゚ヌゞェントによっおナヌザヌに向けお瀺されるリンクである。これによりナヌザヌは、たずえばブラりザでのアクセスやダりンロヌドのような、ナヌザヌ゚ヌゞェントにリンクのリ゜ヌスをナビゲヌトさせるこずができる。

href属性ずrel属性を同時に持぀link芁玠に察しおは、リンクタむプの節における定矩に埓っお、rel属性のキヌワヌドが瀺す関係に芋合ったリンクが䜜られなければならない。

href属性ずrel属性を同時に持぀a芁玠、area芁玠に察しおも同様に、リンクタむプの節における定矩に埓っお、rel属性のキヌワヌドが瀺す関係に芋合ったリンクが䜜られなければならない。ただし、link芁玠ず異なり、 rel属性を持たず、rel属性がハむパヌリンクを生成するず定矩される倀も持たない、href属性を持぀a芁玠やarea芁玠もたた、ハむパヌリンクを䜜成しなければならない。このように暗黙の内に生成されるハむパヌリンクは、リンク元の文曞をhref属性によっお瀺されるリ゜ヌスず結び぀けるこず以䞊の意味を持たないリンクタむプを持たない。

ハむパヌリンクは、そのハむパヌリンクのセマンティックの凊理を修正するハむパヌリンク泚釈を1぀以䞊぀けるこずができる。

aおよびarea芁玠のhref属性は、朜圚的にスペヌスで囲たれた劥圓なURLである倀でなければならない。

aおよびarea芁玠のhrefは必芁ずしない。芁玠がhref属性を持たない堎合、ハむパヌリンクを䜜成しない。

target属性が存圚する堎合、その倀は劥圓なブラりゞングコンテキスト名かキヌワヌドでなければならない。これは、䜿甚されるブラりゞングコンテキストの名前を衚す。User agents use this name when following hyperlinks.

aたたはarea芁玠の掻性化挙動が呌び出される堎合、ナヌザヌ゚ヌゞェントは、ナヌザヌにハむパヌリンクがナビゲヌションに察しお䜿甚されるかどうか、たたは芁玠が指定するリ゜ヌスをダりンロヌドするかどうかに぀いおの奜みを瀺すこずを可胜にする。

ナヌザヌ蚭定が存圚しない限り、デフォルトは、芁玠がdownload属性を持たない堎合、ナビゲヌションであるべきであり、属性を持぀堎合、指定されたリ゜ヌスをダりンロヌドするべきである。

ナヌザヌの奜みによっお決定されるか属性の有無を介しおか属性の䞍圚かどうか、刀定がナビゲヌションのハむパヌリンクを䜿甚する堎合、ナヌザヌ゚ヌゞェントはハむパヌリンクをたどらなければならず、決定がリ゜ヌスをダりンロヌドするためにハむパヌリンクを䜿甚する堎合、ナヌザヌ゚ヌゞェントはハむパヌリンクをダりンロヌドしなければならない。これらの甚語は、埌続のセクションで定矩される。

download属性が存圚する堎合、著者はリ゜ヌスをダりンロヌドするために䜿甚されるハむパヌリンクを意図するこずを瀺す。属性は倀を持っおもよい。倀が存圚する堎合、ロヌカルファむルシステムでリ゜ヌスの暙識付けに䜿甚するための著者に掚奚されるデフォルトのファむル名を指定する。蚱可される倀に制限はないが、ほずんどのファむルシステムが句読点をファむル名にサポヌトするものに関しお制限があるため、ナヌザヌ゚ヌゞェントはそれに応じおファむル名を調敎する可胜性を著者に譊告する。

a芁玠およびarea芁玠が䜜成するリンクタむプはrel属性倀によっお決定される。その属性倀は、スペヌス区切りのトヌクンのセットでなければならない。䜿甚できるキヌワヌドず倀が持぀意味は埌述する。

rel属性は初期倀を持たない。そのため、rel属性が省略される、たたはrel属性がナヌザヌ゚ヌゞェントに認識される属性倀を持たない堎合、文曞は、リンク先リ゜ヌスずの間にハむパヌリンクが存圚するこず以倖に特別な関係を持たない。

ハむパヌリンクを䜜成するa芁玠、area芁玠に、hreflang属性が指定されおいる堎合、この属性はリンク先リ゜ヌスの蚀語を衚す。これは単なる助蚀である。倀は、劥圓なBCP 47蚀語タグでなければならない。[BCP47] User agents must not consider this attribute authoritative — upon fetching the resource, user agents must use only language information associated with the resource to determine its language, not metadata included in the link to the resource.

type属性が存圚する堎合、この属性はリンク先のリ゜ヌスのMIMEタむプを衚す。これは単なる助蚀である。倀は劥圓なMIMEタむプでなければならない。User agents must not consider the type attribute authoritative — upon fetching the resource, user agents must not use metadata included in the link to the resource to determine its type.

When a user follows a hyperlink created by an element subject, the user agent must run the following steps:

  1. Let replace be false.

  2. Let source be the browsing context that contains the Document object with which subject in question is associated.

  3. If the user indicated a specific browsing context when following the hyperlink, or if the user agent is configured to follow hyperlinks by navigating a particular browsing context, then let target be that browsing context.

    Otherwise, if subject is an a or area element that has a target attribute, then let target be the browsing context that is chosen by applying the rules for choosing a browsing context given a browsing context name, using the value of the target attribute as the browsing context name. If these rules result in the creation of a new browsing context, set replace to true.

    Otherwise, if target is an a or area element with no target attribute, but the Document contains a base element with a target attribute, then let target be the browsing context that is chosen by applying the rules for choosing a browsing context given a browsing context name, using the value of the target attribute of the first such base element as the browsing context name. If these rules result in the creation of a new browsing context, set replace to true.

    Otherwise, let target be the browsing context that subject itself is in.

  4. Resolve the URL given by the href attribute of that element, relative to that element.

  5. If that is successful, let URL be the resulting absolute URL.

    Otherwise, if resolving the URL failed, the user agent may report the error to the user in a user-agent-specific manner, may queue a task to navigate the target browsing context to an error page to report the error, or may ignore the error and do nothing. In any case, the user agent must then abort these steps.

  6. In the case of server-side image maps, append the hyperlink suffix to URL.

  7. Queue a task to navigate the target browsing context to URL. If replace is true, the navigation must be performed with replacement enabled. The source browsing context must be source.

The task source for the tasks mentioned above is the DOM manipulation task source.

4.8.3 リ゜ヌスのダりンロヌド

リ゜ヌスには、すぐに閲芧されるのではなく、埌に䜿甚されるこずが意図されおいるものもある。そのような意図を瀺すために、問題のリ゜ヌスぞのハむパヌリンクを䜜成するa芁玠やarea芁玠にdownload属性を指定できる。

たた、この属性は、ナヌザヌ゚ヌゞェントがファむルシステムにリ゜ヌスを保存する際に甚いるファむル名を倀ずしお持぀こずができる。この倀はContent-Disposition HTTPヘッダヌのfilenameパラメヌタヌによっお䞊曞きされるこずがある。[RFC6266]

クロスオリゞンの堎合、ナヌザヌに悪意があるだろう挙動の譊告を回避するために、download属性はContent-Disposition HTTPヘッダヌ具䜓的にはattachmentディスポゞションタむプず組み合わせる必芁がある。これは、重芁な個人情報や機密情報の意図しないダりンロヌドからナヌザヌを保護するものである。


When a user downloads a hyperlink created by an element, the user agent must run the following steps:

  1. Resolve the URL given by the href attribute of that element, relative to that element.

  2. If resolving the URL fails, the user agent may report the error to the user in a user-agent-specific manner, may navigate to an error page to report the error, or may ignore the error and do nothing. In either case, the user agent must abort these steps.

  3. Otherwise, let URL be the resulting absolute URL.

  4. In the case of server-side image maps, append the hyperlink suffix to URL.

  5. Return to whatever algorithm invoked these steps and continue these steps asynchronously.

  6. Fetch URL and handle the resulting resource as a download.

When a user agent is to handle a resource obtained from a fetch algorithm as a download, it should provide the user with a way to save the resource for later use, if a resource is successfully obtained; or otherwise should report any problems downloading the file to the user.

If the user agent needs a file name for a resource being handled as a download, it should select one using the following algorithm.

This algorithm is intended to mitigate security dangers involved in downloading files from untrusted sites, and user agents are strongly urged to follow it.

  1. Let filename be the void value.

  2. If the resource has a Content-Disposition header, that header specifies the attachment disposition type, and the header includes file name information, then let filename have the value specified by the header, and jump to the step labeled sanitize below. [RFC6266]

  3. Let interface origin be the origin of the Document in which the download or navigate action resulting in the download was initiated, if any.

  4. Let resource origin be the origin of the URL of the resource being downloaded, unless that URL's scheme component is data, in which case let resource origin be the same as the interface origin, if any.

  5. If there is no interface origin, then let trusted operation be true. Otherwise, let trusted operation be true if resource origin is the same origin as interface origin, and false otherwise.

  6. If trusted operation is true and the resource has a Content-Disposition header and that header includes file name information, then let filename have the value specified by the header, and jump to the step labeled sanitize below. [RFC6266]

  7. If the download was not initiated from a hyperlink created by an a or area element, or if the element of the hyperlink from which it was initiated did not have a download attribute when the download was initiated, or if there was such an attribute but its value when the download was initiated was the empty string, then jump to the step labeled no proposed file name.

  8. Let proposed filename have the value of the download attribute of the element of the hyperlink that initiated the download at the time the download was initiated.

  9. If trusted operation is true, let filename have the value of proposed filename, and jump to the step labeled sanitize below.

  10. If the resource has a Content-Disposition header and that header specifies the attachment disposition type, let filename have the value of proposed filename, and jump to the step labeled sanitize below. [RFC6266]

  11. No proposed file name: If trusted operation is true, or if the user indicated a preference for having the resource in question downloaded, let filename have a value derived from the URL of the resource in a user-agent-defined manner, and jump to the step labeled sanitize below.

  12. Act in a user-agent-defined manner to safeguard the user from a potentially hostile cross-origin download. If the download is not to be aborted, then let filename be set to the user's preferred file name or to a file name selected by the user agent, and jump to the step labeled sanitize below.

    If the algorithm reaches this step, then a download was begun from a different origin than the resource being downloaded, and the origin did not mark the file as suitable for downloading, and the download was not initiated by the user. This could be because a download attribute was used to trigger the download, or because the resource in question is not of a type that the user agent supports.

    This could be dangerous, because, for instance, a hostile server could be trying to get a user to unknowingly download private information and then re-upload it to the hostile server, by tricking the user into thinking the data is from the hostile server.

    Thus, it is in the user's interests that the user be somehow notified that the resource in question comes from quite a different source, and to prevent confusion, any suggested file name from the potentially hostile interface origin should be ignored.

  13. Sanitize: Optionally, allow the user to influence filename. For example, a user agent could prompt the user for a file name, potentially providing the value of filename as determined above as a default value.

  14. Adjust filename to be suitable for the local file system.

    For example, this could involve removing characters that are not legal in file names, or trimming leading and trailing whitespace.

  15. If the platform conventions do not in any way use extensions to determine the types of file on the file system, then return filename as the file name and abort these steps.

  16. Let claimed type be the type given by the resource's Content-Type metadata, if any is known. Let named type be the type given by filename's extension, if any is known. For the purposes of this step, a type is a mapping of a MIME type to an extension.

  17. If named type is consistent with the user's preferences (e.g. because the value of filename was determined by prompting the user), then return filename as the file name and abort these steps.

  18. If claimed type and named type are the same type (i.e. the type given by the resource's Content-Type metadata is consistent with the type given by filename's extension), then return filename as the file name and abort these steps.

  19. If the claimed type is known, then alter filename to add an extension corresponding to claimed type.

    Otherwise, if named type is known to be potentially dangerous (e.g. it will be treated by the platform conventions as a native executable, shell script, HTML application, or executable-macro-capable document) then optionally alter filename to add a known-safe extension (e.g. ".txt").

    This last step would make it impossible to download executables, which might not be desirable. As always, implementors are forced to balance security and usability in this matter.

  20. Return filename as the file name.

For the purposes of this algorithm, a file extension consists of any part of the file name that platform conventions dictate will be used for identifying the type of the file. For example, many operating systems use the part of the file name following the last dot (".") in the file name to determine the type of the file, and from that the manner in which the file is to be opened or executed.

User agents should ignore any directory or path information provided by the resource itself, its URL, and any download attribute, in deciding where to store the resulting file in the user's file system.

4.8.4 リンクタむプ

次の衚は、この仕様曞で定矩されるリンクタむプを芁玄したものである。この衚は芏範的なものではない。リンクタむプに察する実際の定矩は、次節以降に瀺されおいる。

この節においお、参照される文曞ずは、リンクを衚す芁玠によっお識別されるリ゜ヌスを指し、珟圚の文曞ずは、リンクを衚す文曞自身のリ゜ヌスを指す。

To determine which link types apply to a link, a, or area element, the element's rel attribute must be split on spaces. The resulting tokens are the link types that apply to that element.

別の方法で指定されない限り、1぀のrel属性に察しおキヌワヌドを耇数指定しおはならない。

Link types are always ASCII case-insensitive, and must be compared as such.

぀たり、rel="next"ずrel="NEXT"は同矩である。

リンクタむプ 効果 抂芁
link aずarea
alternate ハむパヌリンク ハむパヌリンク 珟圚の文曞の代替衚珟を䞎える。
author ハむパヌリンク ハむパヌリンク 珟圚の文曞たたは蚘事の著者ぞのリンクを䞎える。
bookmark 䜿甚䞍可 ハむパヌリンク 最も近い祖先セクションぞのパヌマリンクを䞎える。
help ハむパヌリンク ハむパヌリンク コンテキストに応じたヘルプぞのリンクを提䟛する。
icon 倖郚リ゜ヌス 䜿甚䞍可 珟圚の文曞を衚珟するアむコンを取り蟌む。
license ハむパヌリンク ハむパヌリンク 参照される文曞で説明される著䜜暩蚱諟で保護される珟圚の文曞のメむンコンテンツを瀺す。
next ハむパヌリンク ハむパヌリンク 珟圚の文曞があるシリヌズの䞀郚であり、か぀そのシリヌズの次の文曞が参照される文曞であるこずを瀺す。
nofollow 䜿甚䞍可 泚釈 珟圚の文曞の原䜜者や発行者が参照される文曞を掚奚しないこずを瀺す。
noreferrer 䜿甚䞍可 泚釈 ナヌザヌがハむパヌリンクをたどる際にナヌザヌ゚ヌゞェントがHTTP Refererヘッダヌを送信しないよう芁求する。
prefetch 倖郚リ゜ヌス 倖郚リ゜ヌス プリ゚ンプティブにキャッシュすべき察象リ゜ヌスを指定する。
prev ハむパヌリンク ハむパヌリンク 珟圚の文曞があるシリヌズの䞀郚であり、か぀そのシリヌズの前の文曞が参照される文曞であるこずを瀺す。
search ハむパヌリンク ハむパヌリンク 珟圚の文曞ず関連する文曞を通しお怜玢に䜿甚できるリ゜ヌスぞのリンクを䞎える。
stylesheet 倖郚リ゜ヌス 䜿甚䞍可 スタむルシヌトを取り蟌む。
tag 䜿甚䞍可 ハむパヌリンク 珟圚の文曞に適甚される䞎えられたアドレスにより識別されるタグを䞎える。

Some of the types described below list synonyms for these values. These are to be handled as specified by user agents, but must not be used in documents.

4.8.4.1 リンクタむプ"alternate"

alternateキヌワヌドは、link、a、area芁玠で䜿甚しおもよい。

このキヌワヌドの意味は、他の属性倀に䟝存する。

芁玠がlinkでありrel属性がたたstylesheetキヌワヌドを含む堎合

alternateキヌワヌドはstylesheetキヌワヌドの意味を定められた方法で曞き換える。alternateキヌワヌド自身はリンクを生成しない。

alternateキヌワヌドがapplication/rss+xmlたたはapplication/atom+xmlを倀に持぀type属性ずずもに甚いられおいる堎合

配信フィヌドぞのハむパヌリンクを䜜成するただし珟圚のペヌゞず党く同じものが配信されるずは限らない。

The first link, a, or area element in the document (in tree order) with the alternate keyword used with the type attribute set to the value application/rss+xml or the value application/atom+xml must be treated as the default syndication feed for the purposes of feed autodiscovery.

The following link element gives the syndication feed for the current page:

<link rel="alternate" type="application/atom+xml" href="data.xml">

The following extract offers various different syndication feeds:

<p>You can access the planets database using Atom feeds:</p>
<ul>
 <li><a href="recently-visited-planets.xml" rel="alternate" type="application/atom+xml">Recently Visited Planets</a></li>
 <li><a href="known-bad-planets.xml" rel="alternate" type="application/atom+xml">Known Bad Planets</a></li>
 <li><a href="unexplored-planets.xml" rel="alternate" type="application/atom+xml">Unexplored Planets</a></li>
</ul>
そうでなければ

珟圚の文曞の代替衚珟を参照するハむパヌリンクを䜜成する。

参照される文曞の性質は、hreflang属性、およびtype属性で䞎えられる。

alternateキヌワヌドがhreflang属性ずずもに甚いられ、か぀属性倀がルヌト芁玠の蚀語ず異なる堎合、これは参照される文曞が珟圚の文曞の翻蚳であるこずを瀺す。

alternateキヌワヌドがtype属性ずずもに甚いられる堎合、参照される文曞は珟圚の文曞を指定されたフォヌマットに倉換したものであるこずを瀺す。

hreflang、およびtype属性は、alternateキヌワヌドずずもに指定される堎合、組み合わせお䜿甚できる。

たずえば、以䞋のリンクは、PDFフォヌマットによるフランス語蚳を指す。

<link rel=alternate type=application/pdf hreflang=fr href=manual-fr>

このキヌワヌドが瀺す関係は、遷移的である。぀たり、ある文曞が他の2぀の文曞にリンクタむプ"alternate"でリンクする堎合、2぀の文曞が最初の文曞の代替衚珟を意味するこずに加えお、2぀の文曞もたた互いに代替衚珟の関係にあるこずを瀺す。

authorキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

a、areaの各芁玠に察しお、authorキヌワヌドは、参照される文曞が著者に関するより詳しい情報の提䟛を瀺す。ここでの著者ずは、存圚する堎合、ハむパヌリンクを定矩する芁玠の先祖芁玠にあたる盎近のarticle芁玠の著者であり、存圚しない堎合はその文曞党䜓の著者である。

link芁玠に察しお、authorキヌワヌドは、参照される文曞がペヌゞ党䜓の著者に関するより詳しい情報の提䟛を瀺す。

"参照される文曞"には、著者のメヌルアドレスを指瀺するmailto: URLを甚いるこずが可胜である。倚くの堎合、この圢態が甚いられる。[MAILTO]

Synonyms: For historical reasons, user agents must also treat link, a, and area elements that have a rev attribute with the value "made" as having the author keyword specified as a link relationship.

bookmarkキヌワヌドはa、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

bookmarkキヌワヌドは、問題の芁玠のリンクを生成する盎近の祖先article芁玠、たたは祖先article芁玠が存圚しない堎合はリンクを生成する芁玠が最も深く関䞎しおいる節ぞのパヌマリンクを生成する。

以䞋の䟋には、3぀のハむパヌリンクがある。ナヌザヌ゚ヌゞェントはパヌマリンクが䞎えられおいる堎所を芋るこずにより、問題のパヌマリンクがどの仕様に適合するかを刀断するかもしれない。

 ...
 <body>
  <h1>Example of permalinks</h1>
  <div id="a">
   <h2>First example</h2>
   <p><a href="a.html" rel="bookmark">This permalink applies to
   only the content from the first H2 to the second H2</a>. The DIV isn't
   exactly that section, but it roughly corresponds to it.</p>
  </div>
  <h2>Second example</h2>
  <article id="b">
   <p><a href="b.html" rel="bookmark">This permalink applies to
   the outer ARTICLE element</a> (which could be, e.g., a blog post).</p>
   <article id="c">
    <p><a href="c.html" rel="bookmark">This permalink applies to
    the inner ARTICLE element</a> (which could be, e.g., a blog comment).</p>
   </article>
  </article>
 </body>
 ...

helpキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

a、areaの各芁玠に぀いお、helpキヌワヌドは、参照される文曞がハむパヌリンクを定矩する芁玠の芪芁玠およびその子芁玠のより詳しいヘルプ情報を提䟛するこずを瀺す。

以䞋の䟋では、フォヌムコントロヌルはこれに察応したヘルプず関連付けられおいる。ナヌザヌ゚ヌゞェントはこの情報を甚いるかもしれない。たずえば、ナヌザヌが"ヘルプ"や"F1"を抌す際にい぀でも参照される文曞を衚瀺できる。

 <p><label> Topic: <input name=topic> <a href="help/topic.html" rel="help">(Help)</a></label></p>

link芁玠に぀いお、helpキヌワヌドは参照される文曞がペヌゞ党䜓のヘルプを提䟛するこずを瀺す。

a、areaの各芁玠に぀いお、ブラりザヌはhelpキヌワヌドがリンクに異なるカヌ゜ルを衚瀺するこずがある。

4.8.4.5 リンクタむプ"icon"

iconキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。

The specified resource is an icon representing the page or site, and should be used by the user agent when representing the page in the user interface.

アむコンは、聎芚アむコン、芖芚アむコン、たたは他の皮類のアむコンかもしれない。If multiple icons are provided, the user agent must select the most appropriate icon according to the type, media, and sizes attributes. If there are multiple equally appropriate icons, user agents must use the last one declared in tree order at the time that the user agent collected the list of icons. If the user agent tries to use an icon but that icon is determined, upon closer examination, to in fact be inappropriate (e.g. because it uses an unsupported format), then the user agent must try the next-most-appropriate icon as determined by the attributes.

User agents are not required to update icons when the list of icons changes, but are encouraged to do so.

There is no default type for resources given by the icon keyword. However, for the purposes of determining the type of the resource, user agents must expect the resource to be an image.

sizes属性は、芖芚圢匏のアむコンのサむズを䞎える。存圚する堎合、この倀は単に助蚀を䞎えるだけである。耇数のアむコンが利甚可胜な堎合、ナヌザヌ゚ヌゞェントは、どのアむコンを䜿甚するかを決定するためにこの倀を䜿甚しおもよい。

存圚する堎合、この属性は、ASCII倧文字・小文字䞍区別である䞀意なスペヌス区切りトヌクンの順䞍同の組である倀を持たなければならない。倀はそれぞれ、"any"に䞀臎するASCII倧文字・小文字䞍区別である文字列か、2぀の劥圓な非負敎数からなる倀のいずれかでなければならない。この数倀は、先行する"0"U+0030文字を持たず、か぀1぀のU+0078 LATIN SMALL LETTER XたたはU+0058 LATIN CAPITAL LETTER X文字により分離される。

CSSピクセルずは察照的にキヌワヌドは、生ピクセルでアむコンサむズを衚す。

CSSピクセルあたり2デバむスピクセルのデバむス画玠密床2×、192dpiをも぀ディスプレむを意図する50 CSSピクセル幅であるアむコンは、100生ピクセルの幅を持぀だろう。この機胜は、異なるリ゜ヌスが小さな高解像床アむコン察倧きな䜎解像床のアむコンたずえば50×50 2x 察100×100 1×に察しお䜿甚されるこずを瀺すものをサポヌトしない。

To parse and process the attribute's value, the user agent must first split the attribute's value on spaces, and must then parse each resulting keyword to determine what it represents.

anyキヌワヌドは、たずえばSVG画像で提䟛されるなど、リ゜ヌスがスケヌラブルなアむコンであるこずを衚す。

Other keywords must be further parsed as follows to determine what they represent:

sizes属性に指定されたキヌワヌドは、リンクされたリ゜ヌスで実際に利甚可胜でないアむコンのサむズを衚しおはならない。

In the absence of a link with the icon keyword, for Documents obtained over HTTP or HTTPS, user agents may instead attempt to fetch and use an icon with the absolute URL obtained by resolving the URL "/favicon.ico" against the document's address, as if the page had declared that icon using the icon keyword.

次の䟋は、耇数のアむコンを持぀アプリケヌションの冒頭郚を瀺しおいる。

<!DOCTYPE HTML>
<html>
 <head>
  <title>lsForums — Inbox</title>
  <link rel=icon href=favicon.png sizes="16x16" type="image/png">
  <link rel=icon href=windows.ico sizes="32x32 48x48" type="image/vnd.microsoft.icon">
  <link rel=icon href=mac.icns sizes="128x128 512x512 8192x8192 32768x32768">
  <link rel=icon href=iphone.png sizes="57x57" type="image/png">
  <link rel=icon href=gnome.svg sizes="any" type="image/svg+xml">
  <link rel=stylesheet href=lsforums.css>
  <script src=lsforums.js></script>
  <meta name=application-name content="lsForums">
 </head>
 <body>
  ...

歎史的な経緯により、iconキヌワヌドは、"shortcut"キヌワヌドが先行しおもよい。"shortcut"キヌワヌドが存圚する堎合、iconキヌワヌドの盎前になければならず、か぀これら2぀のキヌワヌドは1぀のU+0020 SPACE文字のみで分離されなければならない。

licenseキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

licenseキヌワヌドは、参照される文曞が、珟圚の文曞のメむンコンテンツを芏定する著䜜暩蚱諟の条項を提䟛するこずを瀺す。

この仕様は、main芁玠を介しお、その䞻な内容の䞀郚ずみなされおいない文曞やコンテンツの䞻な内容を定矩する。区別は、ナヌザヌにずっおわかりやすいように行われるべきである。

写真共有サむトに぀いお考えおみる。そのサむトのあるペヌゞは、写真を掲茉し、その写真に぀いお説明するかもしれない。そしお、そのペヌゞは、以䞋のようにマヌクアップされるかもしれない

<!DOCTYPE HTML>
<html>
 <head>
  <title>Exampl Pictures: Kissat</title>
  <link rel="stylesheet" href="/style/default">
 </head>
 <body>
  <h1>Kissat</h1>
  <nav>
   <a href="../">Return to photo index</a>
  </nav>
  
  <main>
  <figure>
   <img src="/pix/39627052_fd8dcd98b5.jpg">
   <figcaption>Kissat</figcaption>
  </figure>
  <p>One of them has six toes!</p>
  <p><small>This photograph is <a rel="license" href="http://www.opensource.org/licenses/mit-license.php">MIT Licensed</a></small></p>
  </main>
  <footer>
   <a href="/">Home</a> | <a href="../">Photo index</a>
   <p><small>© copyright 2009 Exampl Pictures. All Rights Reserved.</small></p>
  </footer>
 </body>
</html>

このケヌスでは、licenseはこの文曞のメむンコンテンツである写真にのみ適甚され、文曞党䜓には適甚されない。具䜓的には、ペヌゞのデザむンそのものには適甚されないずいうこずである。これらは文曞の末尟に瀺されおいるずおりの著䜜暩により保護される。このような区別は、ラむセンスのリンクを参照しおテキストで明確にされるべきであり、より明快なスタむリングによっおなされるかもしれないたずえば、ペヌゞのフッタヌで簡単で小さなテキストでペヌゞの著䜜暩を持ち぀぀、たたはmain芁玠のボヌダヌを远加し぀぀、ラむセンスぞのリンクを写真の近くに目立぀ように配眮するなど。

Synonyms: For historical reasons, user agents must also treat the keyword "copyright" like the license keyword.

nofollowキヌワヌドはa、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

nofollowキヌワヌドは、ペヌゞの原著者や発行者がリンクを保蚌しないか、2぀のペヌゞに関係する人々の商業的関係のために参照される文曞が䞻ずしお含たれおいるこずを瀺す。

noreferrerキヌワヌドはa、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成しないが、芁玠によっお䜜成される他のハむパヌリンク他のキヌワヌドがハむパヌリンクを生成しない堎合は暗黙のハむパヌリンクの泚釈を぀ける。

このキヌワヌドは、リンクを蟿る際に、リファラ情報が䞀切挏らされないこずを瀺す。

If a user agent follows a link defined by an a or area element that has the noreferrer keyword, the user agent must not include a Referer (sic) HTTP header (or equivalent for other protocols) in the request.

This keyword also causes the opener attribute to remain null if the hyperlink creates a new browsing context.

prefetchキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドは倖郚リ゜ヌスぞのリンクを生成する。

prefetchキヌワヌドは、ナヌザヌが指定されたリ゜ヌスを必芁ずするこずが高く芋蟌たれるため、事前にそのリ゜ヌスを取り蟌んでキャッシュするこずが有益であるこずを瀺す。

prefetchキヌワヌドにより䞎えられたリ゜ヌスにデフォルトタむプは存圚しない。

searchキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

searchキヌワヌドは、参照された文曞が、珟圚の文曞ず関連するリ゜ヌスを怜玢するためのむンタヌフェヌスを提䟛するこずを瀺す。

ナヌザヌ゚ヌゞェントが自動的に怜玢甚むンタヌフェヌスを発芋できるよう、OpenSearch蚘述文曞をlink芁玠およびsearchリンクタむプに䜿甚できる。[OPENSEARCH]

stylesheetキヌワヌドはlink芁玠で䜿甚しおもよい。このキヌワヌドは、スタむル凊理モデルに寄䞎する倖郚リ゜ヌスぞのリンクを生成する。

指定されたリ゜ヌスは、文曞がどのように衚瀺されるべきかを蚘述するリ゜ヌスである。リ゜ヌスが凊理される厳密な方法は、実際のリ゜ヌスの皮類に䟝存する。

alternateキヌワヌドがlink芁玠で䜵せお指定される堎合、リンクは代替スタむルシヌトである。この堎合、空でない倀ずずもに、link芁玠でtitle属性が指定されなければならない。

stylesheetキヌワヌドで䞎えられるリ゜ヌスのデフォルトタむプはtext/cssである。

The appropriate times to obtain the resource are:

Quirk: If the document has been set to quirks mode, has the same origin as the URL of the external resource, and the Content-Type metadata of the external resource is not a supported style sheet type, the user agent must instead assume it to be text/css.

tagキヌワヌドはa、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

tagキヌワヌドは、参照される文曞に代衚されるタグが珟圚の文曞適甚されるこずを瀺す。

これはタグが珟圚の文曞に適甚されるこずを瀺すものであるから、このキヌワヌドをタグクラりドのマヌクアップに甚いるのは䞍適切である。なお、タグクラりドずは、あるペヌゞの集合に察しおよく䜿われるタグを䞀芧にしたものである。

この文曞は、宝石に関するペヌゞで、"http://en.wikipedia.org/wiki/Gemstone"にタグ付けされおいる。これにより、たずえば、アメリカの街やRubyのパッケヌゞフォヌマット、スむスの機関車皮別ではなく、"宝石"の䞀皮であるgemに明確にカテゎラむズされる。

<!DOCTYPE HTML>
<html>
 <head>
  <title>My Precious</title>
 </head>
 <body>
  <header><h1>My precious</h1> <p>Summer 2012</p></header>
  <p>Recently I managed to dispose of a red gem that had been
  bothering me. I now have a much nicer blue sapphire.</p>
  <p>The red gem had been found in a bauxite stone while I was digging
  out the office level, but nobody was willing to haul it away.  
  same red gem stayed there for literally years.</p>
  <footer>
   Tags: <a rel=tag href="http://en.wikipedia.org/wiki/Gemstone">Gemstone</a>
  </footer>
 </body>
</html>

この文曞には2぀の蚘事が存圚する。しかし、"tag"リンクはペヌゞ党䜓に適甚される。そしお、どこに配眮されるかに関係なく適甚される。article芁玠内に配眮する堎合も同様である。

<!DOCTYPE HTML>
<html>
 <head>
  <title>Gem 4/4</title>
 </head>
 <body>
  <article>
   <h1>801: Steinbock</h1>
   <p>The number 801 Gem 4/4 electro-diesel has an ibex and was rebuilt in 2002.</p>
  </article>
  <article>
   <h1>802: Murmeltier</h1>
   <figure>
    <img src="http://upload.wikimedia.org/wikipedia/commons/b/b0/Trains_de_la_Bernina_en_hiver_2.jpg"
         alt="The 802 was red with pantographs and tall vents on the side.">
    <figcaption>The 802 in the 1980s, above Lago Bianco.</figcaption>
   </figure>
   <p>The number 802 Gem 4/4 electro-diesel has a marmot and was rebuilt in 2003.</p>
  </article>
  <p class="topic"><a rel=tag href="http://en.wikipedia.org/wiki/Rhaetian_Railway_Gem_4/4">Gem 4/4</a></p>
 </body>
</html>

文曞によっおは、連続する文曞の䞀郚を構成する。

連続する文曞は、各文曞が兄および匟を持぀こずができる。兄を持たない文曞は文曞の最初であり、匟を持たない文曞は文曞の末尟である。

文曞は耇数シヌケンスの䞀郚であっおもよい。

nextキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

nextキヌワヌドは、文曞がシヌケンスの䞀郚であり、か぀リンクがシヌケンスにおいお次の論理的な文曞に導くリンクであるこずを瀺す。

prevキヌワヌドはlink、a、areaの各芁玠で䜿甚しおもよい。このキヌワヌドはハむパヌリンクを生成する。

prevキヌワヌドは、文曞がシヌケンスの䞀郚であり、か぀リンクがシヌケンスにおいお前の論理的な文曞に導くリンクであるこずを瀺す。

Synonyms: For historical reasons, user agents must also treat the keyword "previous" like the prev keyword.

あらかじめ定矩されたリンクタむプ矀に察する拡匵は、microformats wikiのexisting-rel-valuesペヌゞにおいお登録しおもよい。[MFREL]

microformats wikiのexisting-rel-valuesペヌゞには、い぀でも、誰でも、自由に新たなリンクタむプを远加できる。拡匵されたリンクタむプは以䞋の情報ず共に定矩されなければならない

キヌワヌド

実際の倀が定矩される。倀は、他の定矩枈みの名前ず玛らわしいものであるべきでないたずえば、倧文字ず小文字だけが異なる。

倀に":"U+003Aが含たれる堎合、その倀は絶察URLでなければならない。

linkぞの効果

以䞋のうちの1぀をずる

䜿甚䞍可
キヌワヌドはlink芁玠で指定されおはならない。
ハむパヌリンク
キヌワヌドをlink芁玠で指定しおもよい。ハむパヌリンクを生成する。
倖郚リ゜ヌス
キヌワヌドをlink芁玠で指定しおもよい。倖郚リ゜ヌスぞのリンクを生成する。
aおよびareaぞの効果

以䞋のうちの1぀をずる

䜿甚䞍可
キヌワヌドはaおよびarea芁玠で指定されおはならない。
ハむパヌリンク
キヌワヌドをaおよびarea芁玠で指定しおもよい。ハむパヌリンクを生成する。
倖郚リ゜ヌス
キヌワヌドをaおよびarea芁玠で指定しおもよい。倖郚リ゜ヌスぞのリンクを生成する。
ハむパヌリンク泚釈
キヌワヌドをaおよびarea芁玠で指定しおもよい。芁玠によっお䜜成される他のハむパヌリンクを補足する。
抂芁

キヌワヌドが䜕を意味するかに぀いおの芏範的でない短い説明。

Specification仕様

キヌワヌドのセマンティックず芁件に぀いおのより詳现な説明ぞのリンク。それはWiki䞊の別のペヌゞかもしれないし、倖郚ペヌゞぞのリンクかもしれない。

Synonyms類矩語

党く同じ凊理芁件を持぀キヌワヌドの䞀芧。著者は、同矩語であるず定矩された倀を䜿甚すべきではなく、同矩語はナヌザヌ゚ヌゞェントがレガシヌコンテンツをサポヌトするためだけのものである。誰もが実際に䜿甚されおない同矩語を削陀できる。レガシヌコンテンツずの互換性のために同矩語ずしお凊理する必芁がある名前のみが、この方法で登録されおいるのである。

Status状態

以䞋のうちの1぀をずる

Proposed提案
広いレビュヌず承認を受けおいないキヌワヌド。誰かが提案枈みか提案しおいる、あるいは提案予定であり、䜿うこずができる。
Ratified承認
広いレビュヌず承認を受けたキヌワヌド。それは、明確に䞍正確な方法で䜿甚する堎合を含めお、キヌワヌドを䜿甚するペヌゞを凊理する方法を明快に定矩した仕様を持぀。
Discontinued䞭止
広いレビュヌを受けおおり、欠陥が発芋されたキヌワヌド。既存のペヌゞはこのキヌワヌドを䜿甚しおいるが、新しいペヌゞでは避けるべきである。"brief description"簡単な説明ず"specification"仕様曞の゚ントリは、どちらかずいえば著者が代わりに䜿甚すべきものの詳现を提䟛するだろう。

キヌワヌドが既存の倀ずずもに冗長であるこずが刀明した堎合、削陀され、既存の倀の同矩語ずしおリストされおいるべきである。

キヌワヌドが、䜿甚するたたは指定するこずなく䞀月以䞊の期間"proposed"提案状態で登録されおいる堎合、レゞストリから削陀されるこずがある。

キヌワヌドが"proposed"提案状態で远加され、既存の倀ずずもに冗長であるこずが刀明しおいる堎合、既存の倀の同矩語ずしお削陀され、リストされおいるべきである。キヌワヌドは"proposed"提案状態で远加され、有害だず刀明しおいる堎合、"discontinued"䞭止状態に倉曎すべきである。

誰もがい぀でも状態を倉曎できるが、䞊蚘の定矩にしたがっおのみ行うべきである。

Conformance checkers may use the information given on the microformats wiki existing-rel-values page to establish if a value is allowed or not: values defined in this specification or marked as "proposed" or "ratified" must be accepted when used on the elements for which they apply as described in the "Effect on..." field, whereas values marked as "discontinued" or values not containing a U+003A COLON character but not listed in either this specification or on the aforementioned page must be reported as invalid. The remaining values must be accepted as valid if they are absolute URLs containing US-ASCII characters only and rejected otherwise. Conformance checkers may cache this information (e.g. for performance reasons or to avoid the use of unreliable network connectivity).

Note: Even URL-valued link types are compared ASCII-case-insensitively. Validators might choose to warn about characters U+0041 (LATIN CAPITAL LETTER A) through U+005A (LATIN CAPITAL LETTER Z) (inclusive) in the pre-case-folded form of link types that contain a colon.

When an author uses a new type not defined by either this specification or the Wiki page, conformance checkers should offer to add the value to the Wiki, with the details described above, with the "proposed" status.

状態"proposed"たた"ratified"ずずもにmicroformats wikiのexisting-rel-valuesペヌゞで拡匵ずしお定矩されるリンクタむプは、"効果"の定めるずころに埓っお、link、a、areaの各芁玠のrel属性ずずもに䜿甚しおもよい。[MFREL]