Skip to main content
link attribute | link property

Sets or gets the color of the document links for the object.



HTML<element link="p" ... >

p =


Property values

Type: Variant

one of the color names or RGB values in the Color Table.

Standards information


When you use the rel attribute of a link element, the value (and purpose) of the href attribute varies according to the value of the rel attribute. For more info, see the table of supported values on the rel attribute page.

The link property cannot be set through the BODY object's onload event, but the linkColor property can.

Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.

See also