<linktext>

The <linktext> element provides the literal label or line of text for a link. For links to local DITA topics, the text of a link can typically be resolved during processing. Use the <linktext> element only when the target cannot be reached, such as when it is a peer or external link, or when the target is local but not in DITA format. When used inside a topic, <linktext> is used as the text for the specified link; when used within a map, <linktext> is used as the text for generated links that point to the specified topic.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

"- topic/linktext " when used in topics, and "- map/linktext " when used in maps.

Example

This section is non-normative.

<link href="tzover.htm#accsqlj">
 <linktext>Accessing relational data with SQLJ</linktext>
</link>

Content model

(Text | <data> | <data-about> | <foreign> | <unknown> | <keyword> | <term> | <text> | <ph>)*

Contained by

<link>

Zero or more of the following
  • Text
  • <data>
  • <data-about>
  • <foreign>
  • <keyword>
  • <ph>
  • <term>
  • <text>
  • <unknown>

Contained by

  • <link>

Inheritance

- topic/linktext

The <linktext> element is a base element type. It is defined in the topic module.

Attributes

The following attributes are available on this element: Universal attribute group and outputclass.