LINK

Description

It is used to specify a typed hyperlink between the document and some other resource.

Syntax

<LINK
DISABLED
HREF=url
ID=value
MEDIA=SCREEN | PRINT | ALL
REL=STYLESHEET
TITLE=text
TYPE="text/css"
>

Parameter

Description

DISABLED

Used to disable an element. This attribute prevents an element from receiving the focus, and causes the element to appear "grayed out."

HREF

Specifies the destination URL or anchor point.

ID

An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.

MEDIA

Describes the output device for the document. A value of "PRINT" does not affect the on-screen layout. Default value is ALL.
SCREEN-- Output is intended for non-paged computer screens. PRINT-- Output is intended for paged, opaque material and for documents on screen viewed in print preview mode.
ALL-- Applies to all devices.

REL

The REL attribute gives the relationship(s) described by the hypertext link from the anchor to the target. Values and their semantics will be registered by the HTML registration authority.

TITLE

Used to provide advisory information.

TYPE

Indicates the type of style sheet.

Example

<LINK REL=stylesheet href="styles.css" TYPE="text/css">

Remarks

This element may only be used within the HEAD tag.