A target anchor is a piece of text that is referred to by a link (a source anchor). Before creating a link to a text string, you must first turn it into a target anchor.
To create a target anchor:
In the Formatted view, if Views/Show targets is turned on, the target text is preceded by a target icon . In the Links view, icons that identify target anchors are always displayed.
name
attribute by:
In both cases, Amaya guarantees that the generated value is unique within the document. But you can change this value, in the same way as the value of any attribute.
Note: If you want to create a link to the last target anchor you have created, choose Link to previous target from the Links menu.
In (X)HTML, any element can be used as a target. A target element is an
element with an id
attribute to which a link can refer (a source
anchor). Before creating a link to such an element, you must first turn it
into a target element.
To create a target element:
id
attribute that identifies it as a target element.
In the Formatted view, if Views/Show targets is
turned on, the target element is preceded by a target icon . In the Links view, icons
that identify target elements are always displayed.
id
attribute by:
In both cases, Amaya guarantees that the generated value is valid and unique within the document. But you can change this value, in the same way as the value of any attribute.
Note: You can also directly
create the id
attribute by selecting the element and using the
Attributes list.
When you enter an attribute value, Amaya checks it for uniqueness, and
changes the value if it is already used by another name
or
id
attribute in the same document.
Note: If you want to create a link to the last target element you have created, choose Link to previous target from the Links menu.
To create an anchor that is a link to another document:
To create a link to a target anchor or target element in the same document or in another document:
Note: If you have created the target anchor or target element recently, instead of step 2 above, select Link to previous target in the Links menu: the last target you have created will become the target of the new link.
The Links/Copy location command registers the location (URI) of the selected target into the system clipboard. If no target is selected, the current document URL is registered. This location can so be pasted into a dialog box or into another external application.
Use this procedure to change the target of a link without changing its anchor.
To change a link:
Note: You can also manually edit
the href
attribute of the anchor either in the Structure view or
in the Links view, or use the Attributes tool.
The Delete link or target entry in the Links menu removes the anchor enclosing the cursor location.
To use this command, put the selection or the insertion point anywhere within the anchor to be removed (it is not necessary to select the whole anchor), and choose Delete link or target. The anchor is removed, but its content remains.