How are external links created in DITA topics?
In DITA, external links can be created to reference content that exists outside of the documentation set’s DITA topics. These links are essential for citing external resources or connecting to web-based content, providing additional context and references within documentation.
DITA provides the
The
- @href: Specifies the target URL or file path.
- @format: Indicates the format of the linked content.
- @scope: Defines the scope of the link, which can be “external” for external content.
- @type: Suggests the type of content, such as “external” for linking to web resources.
- @show: Determines how the linked content should be displayed, for example, in a new browser window or tab.
Example:
Here’s an example of creating an external link to a website within a DITA topic:
For more information, visit the <xref href="https://www.stilo.com" format="html" scope="external" type="external" show="new">Example website</xref>.
In this example, we use the