LINKLINK*
*Contents  *Index  *Topic Contents
*Previous Topic: LI
*Next Topic: LISTING

LINK

Description

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"
>

ParameterDescription
DISABLED Used to disable an element. This attribute prevents an element from receiving the focus, and causes the element to appear "grayed out."
HREF=url Specifies the destination URL or anchor point.
ID=value 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= SCREEN | PRINT | ALL 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=STYLESHEET 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. The default relationship if none other is given is void. The REL attribute is only used when the HREF= attribute is present.
TITLE=text Used to provide advisory information.
TYPE="text/css" Indicates the type of style sheet.

Remarks

This element may only be used within the HEAD tag.

Example

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

Scripting Object

LINK


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.