English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML link rel-Attribut

Erforderliche rel-Attribut, das das aktuelle Dokument und das verknüpfte Dokument angibt/relationships between resources.

 HTML <link> Tag

Online-Beispiel

Eine externe Stilvorlage:

!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <link> rel-Attribut verwenden-Grundlagen-Tutorial(oldtoolbag.com)</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Ich bin mit einem verknüpften Style Sheet formatiert</h1>
<p>Ich auch!</p>/p>
</body>
</html>
Testen Sie es heraus ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the rel attribute.

Definition and Usage

The rel attribute is required and specifies the relationship between the current document and the linked document./relationships between resources.

HTML 4.01 and HTML5differences between

in HTML5 Some HTML elements have been removed 4.01 Some new values have been added to the values in the syntax.

Syntax

<link rel="value">

Attribute Value

ValueDescription
alternateLink to an alternative version of the document (such as a print page, translation, or mirror).
authorLink to the author of the document.
helpLink to the help document.
iconImport an icon representing the document.
licenseLink to the copyright information of the document.
nextIndicates that the document is part of a collection, and the next document in the collection is the referenced document.
prefetchSpecifies that the target resource should be cached.
prevIndicates that the document is part of a collection, and the previous document in the collection is the referenced document.
searchLink to a search tool for the document.
stylesheetURL of the stylesheet to be imported.
 HTML <link> Tag