HTML body vlink Attribute | Tutorial
Tutorial -- Learning is not just about technology, but also about dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
HTML Reference Manual
- HTML Tag List (Alphabetical)
- HTML Tag List (Functional)
- HTML Global Attributes
- HTML Events
- HTML Canvas
- HTML Audio/Video
- HTML Valid DOCTYPES
- HTML Color Names
- HTML Color Picker
- HTML Color Mixer
- HTML Emoji
- HTML Character Sets
- HTML ASCII Reference Manual
- HTML ISO-8859-1 Reference Manual
- HTML Symbol Entity Reference Manual
- HTML URL Encoding Reference Manual
- HTML Language Code Reference Manual
- HTML Country/Region Codes
- HTTP Status Messages
- HTTP Methods: GET vs POST
- Px/Em Conversion Tool
- Keyboard Shortcuts
HTML Tags
- <!-->
- <!DOCTYPE>
- <a>
- <abbr>
- <acronym>
- <address>
- <applet>
- <area>
- <article>
- <aside>
- <audio>
- <b>
- <base>
- <basefont>
- <bdi>
- <bdo>
- <big>
- <blockquote>
- <body>
- <br>
- <button>
- <canvas>
- <caption>
- <center>
- <cite>
- <code>
- <col>
- <colgroup>
- <command>
- <datalist>
- <dd>
- <del>
- <details>
- <dfn>
- <dialog>
- <dir>
- <div>
- <dl>
- <dt>
- <em>
- <embed>
- <fieldset>
- <figcaption>
- <figure>
- <font>
- <footer>
- <form>
- <frame>
- <frameset>
- <head>
- <header>
- <hgroup>
- <h1> - <h6>
- <hr>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <kbd>
- <keygen>
- <label>
- <legend>
- <li>
- <link>
- <main>
- <map>
- <mark>
- <menu>
- <meta>
- <meter>
- <nav>
- <noframes>
- <noscript>
- <object>
- <ol>
- <optgroup>
- <option>
- <output>
- <p>
- <param>
- <pre>
- <html>
- <picture>
- <progress>
- <q>
- <rp>
- <rt>
- <ruby>
- <s>
- <samp>
- <script>
- <section>
- <select>
- <small>
- <source>
- <span>
- <strike>
- <strong>
- <style>
- <sub>
- <summary>
- <sup>
- <table>
- <tbody>
- <td>
- <textarea>
- <template>
- <tfoot>
- <th>
- <thead>
- <time>
- <title>
- <tr>
- <track>
- <u>
- <ul>
- <var>
- <video>
- <wbr>
HTML <body> vlink Attribute
The vlink attribute of the <body> tag specifies the color of a visited link in an HTML document.
Note: The vlink attribute is deprecated in HTML 4.01 and is not supported in HTML5. Use CSS instead.
Syntax
<body vlink="color_name|hex_number|rgb_number">
Attribute Values
color_name: Specifies the color of a visited link using a color name (e.g., "red").hex_number: Specifies the color of a visited link using a hexadecimal value (e.g., "#FF0000").rgb_number: Specifies the color of a visited link using an RGB value (e.g., "rgb(255,0,0)").
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML body vlink Attribute</title>
</head>
<body vlink="#FF0000">
<p>This is a paragraph.</p>
<p>Visit <a href="#">Tutorial</a> to learn more.</p>
</body>
</html>
In this example, the color of visited links will be red (#FF0000).
Browser Support
The vlink attribute is supported by all major browsers, but it is deprecated. Use CSS for styling links instead.
CSS Alternative
To style visited links using CSS, use the :visited pseudo-class:
a:visited {
color: #FF0000;
}
YouTip