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

HTML-Referenzhandbuch

HTML-Tag-Übersicht

HTML: <body> alink-Attribut

Das alink-Attribut legt die Farbe der aktiven Links im Dokument fest (der Link wird aktiviert, wenn auf ihn geklickt wird).

 HTML <body> Tag

Online-Beispiel

Die Farbe der aktiven Links im Dokument wird auf Blau gesetzt:

!DOCTYPE html>
<html>
<head>
<title>HTML:<body> alink Attribut - Grundlagen-Tutorial-Netz oldtoolbag.com</title>
</head>
<body alink="#0000cc">
<p><a href="https://de.oldtoolbag.com">oldtoolbag.com</a></p>
<p><a href="https://de.oldtoolbag.com/html/">HTML Tutorial</a></p>
<p>HTML5 Diese Eigenschaft wird nicht mehr unterstützt. Verwenden Sie stattdessen CSS.</p>
</body>
</html>
Testen Sie es heraus ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

Alle gängigen Browser unterstützen das alink-Attribut

Definition und Verwendung

HTML5 Das <body> alink-Attribut wird nicht mehr unterstützt. Verwenden Sie stattdessen CSS.

<body> alink attribute in HTML 4.01is deprecated.

The alink attribute specifies the color of the active link (active link) in the document. Clicked).

Compatibility Comments

In HTML 4.01 It is not recommended to use the alink attribute of the body element; in XHTML 1In .0 Strict DTD, the alink attribute of the body element is not supported. Please use CSS instead.

CSS Syntax (<head> section): <style>a:active {color: #0000FF}</style>/style>

Syntax

<body alink="color_name|hex_number|rgb_number">

Attribute Value

ValueDescription
color_nameDefine the font color with color name (for example "red")。
hex_numberDefine the font color with hexadecimal value (for example "#ff0000")。
rgb_numberDefine the font color with rgb code (for example "rgb(255,0,0)")。
 HTML <body> Tag