This element provides the information which is to be stored as attributes within the <LINK> tag between the <HEAD> tags of the EditLive! document. The value which appears within the <link> element will appear within the actual EditLive! document between the <HEAD> tags in a <LINK> tag.
Configuration Element Tree Structure
<editLive>
<document>
<html>
<head>
<link>
<editLive> <document> <html> <head> ... <link ... /> </head> ... </html> </document> ... </editLive>
Optional Attributes
href
This attribute specifies the value for the href attribute of the <LINK> tag to be used between the <HEAD> tags within the actual EditLive! document. The href attribute specifies the destination for the link (eg. the URL of a stylesheet).
type
This attribute specifies the value for the type attribute of the <LINK> tag to be used between the <HEAD> tags within the actual EditLive! document. The type attribute specifies the data type for the document or resource which is linked to (eg. text/css).
Default Value: text/css
rel
This attribute specifies the value for the rel attribute of the <LINK> tag to be used between the <HEAD> tags within the actual EditLive! document. The rel attribute specifies relationship between the current document and the link (eg. stylesheet).
Example
This example demonstrates how to use the <link> element in order to set the attributes of the <LINK> tag within an EditLive! document.
<editLive> <document> <html> <head> ... <link href="styles.css" rel="stylesheet" type="text/css"/> ... </head> ... </html> </document> ... </editLive>
Remarks
The <link> element can appear multiple times within the <head> element. For information on how multiple external style sheets will be interpreted, please refer to the Using CSS in the Applet article.
The <link> element must be a complete tag; it cannot contain a tag body. Therefore, the tag must be closed in the same line. See the example below:
<link href=... />