link
Relationship values can be used in principle: a) for document specific toolbars/menus when used with the link element in document head e.g. start, contents, previous, next, index, end, help b) to link to a separate style sheet (rel="stylesheet") c) to make a link to a script (rel="script") d) by stylesheets to control how collections of html nodes are rendered into printed documents e) to make a link to a printable version of this document e.g. a PostScript or PDF version (rel="alternate" media="print")
Element information
Namespace: http://www.w3.org/1999/xhtml
Schema document: xhtml1-transitional.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Empty content
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | from group coreattrs | |
class | [0..1] | xsd:NMTOKENS | from group coreattrs | |
style | [0..1] | StyleSheet | from group coreattrs | |
title | [0..1] | Text | from group coreattrs | |
lang | [0..1] | LanguageCode | from group i18n | |
xml:lang | [0..1] | Anonymous | denotes an attribute whose value is a language code for the natural language of the content of any element; its value is inherited. | from group i18n |
dir | [0..1] | Anonymous | from group i18n | |
onclick | [0..1] | Script | from group events | |
ondblclick | [0..1] | Script | from group events | |
onmousedown | [0..1] | Script | from group events | |
onmouseup | [0..1] | Script | from group events | |
onmouseover | [0..1] | Script | from group events | |
onmousemove | [0..1] | Script | from group events | |
onmouseout | [0..1] | Script | from group events | |
onkeypress | [0..1] | Script | from group events | |
onkeydown | [0..1] | Script | from group events | |
onkeyup | [0..1] | Script | from group events | |
charset | [0..1] | Charset | ||
href | [0..1] | URI | ||
hreflang | [0..1] | LanguageCode | ||
type | [0..1] | ContentType | ||
rel | [0..1] | LinkTypes | ||
rev | [0..1] | LinkTypes | ||
media | [0..1] | MediaDesc | ||
target | [0..1] | FrameTarget |
Used in
Sample instance
<link> <--any elements or text--> </link>