The Link component provides a standard HTML <link>
tag, used inside the <head>
tag.
Use the Link component to insert header references to other documents related to this HTML page. A common use for the Link component is to link to an external stylesheet, but it can also be used to provide information about the document's relationship to other documents.
When you drop this component on a page in the Visual Designer, it is inserted into the <head>
tag and links to the project's main CSS file, which by default is stylesheet.css
. The component is not rendered on the page, but you can see it under the head
node in the
If you select the component in the Navigator window, you can edit its properties in the component's Properties window. Typical properties you might edit are the following:
stylesheet
because the default target document is the project's style sheet. This property is the equivalent of the rel
attribute of the HTML <link>
tag. For a complete list of rel values, see the W3C web page at
url
property, such as text/html
, image/png
, image/gif
, video/mpeg
, text/css
, or audio/basic
. This value defaults to text/css
because the default reference is the project's style sheet. This property is the equivalent of the type
attribute of the HTML <link>
tag. /resources/stylesheet.css
. This property is the equivalent of the href
attribute of the HTML <link>
tag. For more information on the HTML <link>
tag, see the W3C web page at: