Share via


LINK XHTML Element

Send Feedback

The LINK element enables the current document to establish links to external documents. This element is not rendered and does not require a closing tag.

Using this Element

There are some common properties and collections that apply to all the elements of the document object model, see Common Properties for All DOM Elements in Internet Explorer Mobile.

This element can be used within a web page with attributes.

This element can be used within scripts where it will have properties, events and methods.

Attributes

Attribute Value PPC SP Description
CLASS   Yes Yes Associates the element with a CSS style.
HREF   Yes Yes Sets or retrieves the destination URL or anchor point.
MEDIA   Yes Yes Sets or retrieves the media type to which the CSS belongs.
  all Yes Yes Default. Requirements all devices.
  handheld Yes Yes Output is intended for handheld devices.
  screen Yes Yes Output is intended for computer screens.
REL   Yes Yes Sets or retrieves the relationship between the object and the destination of the link. The document referenced by the HREF attribute is assumed to be a stylesheet and is downloaded by the browser.
STYLE   Yes Yes Provides the definition of the CSS styles used for this element.

Scripting Properties

This element has no scripting properties.

Scripting Events

This element has no associated events.

Scripting Methods

This property has no associated methods.

Requirements

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later

See Also

XHTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.