w3schools    w3Schools
Search :
   
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
ADVERTISEMENTS

XML Certification
Download XML editor
Custom Programming
 
Table of contents
HTML Reference
HTML by Alphabet
HTML by Function
HTML Attributes
HTML Events
HTML Colornames
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encode
HTML Lang Codes
HTTP Messages

HTML Tags
<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

Browse Tutorials
 

HTML body vlink Attribute


HTML body Tag Reference HTML <body> tag

Definition and Usage

The vlink attribute specifies the color of the visited links for a page.

When a link has been used/visited earlier, the color changes to indicate that the link has been visited.


Compatibility Notes

The vlink attribute of the body element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.

Use CSS instead.

CSS syntax (in <head>): <style>a:visited {color: #00FF00}</style>

In our CSS tutorial you can find more details about the :visited pseudo-class.


Syntax

<body vlink="color_value">

Syntax Example

<body vlink="red">

Attribute Values

Value Description
color_name Specifies the visited link color with a color name, like "red"
RGB_value Specifies the visited link color with a RGB value, like "rgb(255,0,0)"
Hex_value Specifies the visited link color with a hex value, like "#ff0000"


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The attribute is supported in all major browsers.


Example

<html>
<body vlink="red">
<a href="/default.asp">W3Schools</a>
</body>
</html>


Try-It-Yourself Demos

body vlink attribute example
Set the color of an visited link with the body vlink attribute

In CSS: visited link style example
Set the color of an visited link with CSS.


HTML body Tag Reference HTML <body> tag