HTML element: <link>
Availability
|
Partial support as of BlackBerry®
Device Software version 3.7.
Full support as of BlackBerry Device Software
version 4.6.
|
The <link> element specifies an external reference to another document.
Differences between HTML, XHTML, and XHTML-MP
In HTML, the <link> element is not closed. To conform to XHTML (strict) or XHTML-MP, you must properly close the <link> element.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
charset
|
charset
|
This attribute specifies the character encoding used in the referenced document; the value must be the name of a standard character set.
|
4.6 or later
|
href
|
URI
|
Required. This attribute specifies the target of the link.
Links can be of the following types:
- web page links: The BlackBerry® Browser
supports the http:// and https:// link schemes.
- phone links: The BlackBerry Browser
supports the following phone link schemes:
- tel: (I-Mode format)
- wtai: (Wirleess Telephone application Make Call Links)
- dc: (Direct Connect links on iDEN networks)
- cti: (Computer Telephone Integration)
- email links: The BlackBerry Browser
supports the following email link schemes:
- mailto:
- PIN: (direct BlackBerry to BlackBerry messaging)
|
3.7 or later
|
hreflang
|
language_code
|
This attribute specifies the base language of the target document.
|
4.6 or later
|
rel
|
link_types
|
This attribute specifies the relationship between the current page and the referenced document. For example, “stylesheet”.
|
4.6 or later
|
rev
|
link_types
|
This attribute provides text that describes a link relationship from the referenced target document to the source document. Not displayed to the user.
|
4.6 or later
|
target
|
frame_target
|
This attribute specifies where the target document will be opened. The value can be the id attribute of the target frame, or can have one of the following special values:
- _blank: Default. The document opens in a new window.
- _self: The document opens in the current frame.
- _parent: The document opens in the parent frameset.
- _top: The document opens in the full window.
|
4.2 or later
|
type
|
MIME_type
|
This attribute specifies the MIME type of the target document.
|
4.6 or later
|
Common attributes
|
—
|
The <link> element supports the following common attributes:
- class
- dir
- id
- lang
- style
- title
|
4.6 or later
|
Event attributes
|
—
|
The <link> element supports the following events:
- onclick
- onkeydown
- onkeypress
- onkeyup
- onmousedown
- onmousemove
- onmouseout
- onmouseover
- onmouseup
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.