Description
A description is a statement that describes or contains additional information about an object.
Syntax
The syntax for representing this component varies depending on the authoring format:
Authoring format | Syntax and example |
---|---|
XDITA |
Example:
|
HDITA |
There is no specific syntax for description in a figure component. Example:
|
MDITA | There is no specific syntax for description in MDITA. |
Usage information
The following list outlines common uses of the description component:
- Table and figure
- Provides more information than can be contained in the title
- Cross reference
- Provides a description of the target
Rendering expectations
When used in conjunction with figures, processors SHOULD consider the content of description components to be part of the content flow.
When used in conjunction with cross references, processors often choose to render the content of description components as hover help or other forms of link preview.
Attributes
The available attributes vary based on the authoring format:
- XDITA
- The following attributes are available on this element: localization attributes, universal
attributes, and
@props
. - MDITA
- There is no attribute support for the MDITA core profile. For the MDITA extended profile, attributes can be specified by using the HDITA representation.
Examples
This section is non-normative.
The following example demonstrates the use of description in a figure component in an XDITA topic.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD LIGHTWEIGHT DITA Topic//EN" "topic.dtd">
<topic id="intro-product">
<title>Remote Lighting Overview</title>
<body>
<p>The Remote Lighting Network kit includes a wireless smart system that helps make the lighting in your home more energy efficient and easier to manage.</p>
<fig>
<desc>This image shows the retail package for version 2.3 of the Remote Lighting Network kit and does not represent any other versions</desc>
<image href="images/kit-package.jpg"><alt>Retail package for the Remote Lighting Network kit </alt></image>
</fig>
</body>
</topic>
The following example demonstrates the use of description in a video component in an HDITA topic.
<!DOCTYPE html>
<title>The Sensei Sushi Promise</title>
<body>
<article id="sensei-promise">
<h1>The Sensei Sushi Promise</h1>
<video height="300" width="400" title="Video about the Sensei Sushi promise" controls poster="sensei-video.jpg">
<source src="sensei-video.mp4"/>
<source src="sensei-video.ogg"/>
<source src="sensei-video.webm"/>
<track srclang="en" src="sensei-video.vtt"/>
<img src="video-not-available.png" alt="This video cannot be displayed."/>
</video>
</article>
</body>