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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <body> vlink-Attribut

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.

 HTML <body> Tag

Online-Beispiel

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 ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

Alle gängigen Browser unterstützen das vlink-Attribut.

Definition und Verwendung

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.

Compatibility Comments

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.

Syntax

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

Attribute Value

ValueDescription
color_nameSpecify the font color with a color name (for example "red")。
hex_numberSpecify the font color with a hexadecimal value (for example "#ff0000")。
rgb_numberSpecify the font color with an rgb code (for example "rgb(255,0,0)")。
 HTML <body> Tag