Name

LINK — NN all IE all HTML 3.2

Synopsis

LINK=”colorTripletOrName"

Optional

Establishes the color of a hypertext link that has not been visited (i.e., the URL of the link is not in the browser’s cache). This is one of three states for a link: unvisited, activate, 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:link {color:} style sheet rule (and the future :link pseudo-class, as described in Chapter 10).

Example

<BODY LINK="#00FF00">...</BODY>

Value

A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names.

Default

#0000FF

Object Model Reference

NN

[window.]document.linkColor

IE

[window.]document.linkColor

[window.]document.body.link

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.