HTML alink attribute
Example
The color of active links in the document is set to green:
Try it »
Browser support





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.
HTML Tag