English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt die Verwendung des HTML body vlink-Attributs, zeigt Online-Beispiele, wie man das HTML body vlink-Attribut verwendet, die Kompatibilität der Browser, die Syntaxdefinition und detaillierte Informationen zu seinen Attributwerten.
Legen Sie die Farbe der besuchten Links im HTML-Dokument auf „blau“ fest:
<!DOCTYPE html> <html> <head> <title>HTML:<body> vlink-Attribut - Grundlagen-Tutorial-Website oldtoolbag.com/title> <body text="blue"> <h1>Hello world!</h1> <p>This is some text.</p> <p><a href="https://de.oldtoolbag.com">Grundlagen-Tutorial-Website</a></p> <p><a href="https://de.oldtoolbag.com/html/">HTML-Tutorial</a></p> </body> </html>Testen Sie es heraus ‹/›
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen das vlink-Attribut.
HTML5 wird nicht mehr unterstützt. Verwenden Sie stattdessen CSS.
Der vlink-Attribut von <body> in HTML 4.01 is deprecated.
The vlink attribute document has been deprecated for visited link colors.
In HTML 4.01 It is not recommended to use the vlink attribute of the body element; in XHTML 1In .0 Strict DTD, the vlink attribute of the body element is not supported. Please use CSS instead.
CSS Syntax (in the <head> section): <style>a:visited {color: #FF0000}</style>/style>
CSS Example: Set the color of visited links
In our CSS tutorial, you can find more about :visited pseudo-classknowledge.
<body vlink="color_name|hex_number|rgb_number">
Value | Description |
---|---|
color_name | Specify the font color with a color name (for example "red")。 |
hex_number | Specify the font color with a hexadecimal value (for example "#ff0000")。 |
rgb_number | Specify the font color with an rgb code (for example "rgb(255,0,0)")。 |