Name
ALINK — NN all IE all HTML 3.2
Synopsis
ALINK=”colorTripletOrName"
Optional
Establishes the color of a hypertext link when it is activated (being
clicked on) by the user. This is one of three states for a link:
unvisited, active, and visited. The color is applied to the link text
or border around an image or object embedded within an
A
element. This attribute is deprecated in favor
of the BODY:active
{color:}
style sheet rule (and the future :active
pseudo-class, as described in Chapter 10).
Example
<BODY ALINK="#FF0000">...</BODY>
Value
A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names.
Default
#FF0000
(in Navigator 4);
#000000
(in IE 4).
Object Model Reference
- NN
[window.]document.alinkColor
- IE
[window.]document.alinkColor
[window.]document.body.aLink
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.