Close this window

Using the <link> tag

Description

The link tag is used to insert links to internal or external locations or resources.

Example

This CNXML:


<para id="linkexample">
  There are many ways to grill
  <link document="m10275" version="2.1">a good 
  steak</link>. My favorite can be found
  <link url="http://en.wikibooks.org/" 
  window="new">on Wikibooks</link>.
</para>
        

Results in this display:

There are many ways to grill a good steak. My favorite can be found on Wikibooks.

Note:

Links must provide a target, so one of the following attributes must be defined: "url", "document", "target-id", "resource", or "version".

Note:

Starting with version 0.6, the CNXML language does not permit URLs that contain ampersand (&) characters (i.e., http://cnx.org/example?i=1&p=2). Check all URLs and replace any ampersands with the entity reference "&amp;". More information can be found on the W3C's page.

Attributes(what's this?)

Children(what's this?)

term, cite, cite-title, foreign, emphasis, sub, sup, code, preformat, quote, note, list, media, footnote, link, newline, space, Unicode text

Parents(what's this?)

preformat, para, title, label, cite, cite-title, link, emphasis, term, sub, sup, quote, foreign, footnote, note, item, code, caption, commentary, meaning, entry
Close this window