English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Das alink-Attribut legt die Farbe der aktiven Links im Dokument fest (der Link wird aktiviert, wenn auf ihn geklickt wird).
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 ‹/›
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen das alink-Attribut
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).
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>
<body alink="color_name|hex_number|rgb_number">
Value | Description |
---|---|
color_name | Define the font color with color name (for example "red")。 |
hex_number | Define the font color with hexadecimal value (for example "#ff0000")。 |
rgb_number | Define the font color with rgb code (for example "rgb(255,0,0)")。 |