Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML body alink attribute

HTML alink attribute

HTML body Tag Reference HTML Tag

Example

The color of active links in the document is set to green:

Runoob Tutorial

HTML Tutorial

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the alink attribute


Definition and Usage

HTML5 no longer supports the alink attribute. Please use CSS instead.

The alink attribute was deprecated in HTML 4.01.

The alink attribute specifies the color of active links in the document. licked).


Compatibility notes

In HTML 4.01, the alink attribute of the body element is deprecated; in XHTML 1.0 Strict DTD, the alink attribute of the body element is not supported. Please use CSS instead.

CSS syntax ( section):

CSS example: set the color of active links

In our CSS tutorial, you can find more details about:active Details of the pseudo-class.


Syntax

HTML tag