Short Description Element (shortdesc)
The shortdesc element provides a concise summary of the purpose or theme of a topic. Short description enhances content discoverability and serves as the foundation for topic previews, search results, and hover text.
The shortdesc element serves these primary purposes:
-
Typically acts as the initial paragraph of a topic that helps readers quickly understand if a topic contains the information they need
-
Often used as link previews in online outputs and in search engine results
Key characteristics of the shortdesc element:
-
Consists of 1-2 sentences, typically not exceeding 60 words
-
Cannot contain certain elements like
noteorxref -
Can be used either as a standalone element below the
titleor nested within anabstractelement -
In maps, can be added within
topicrefelements to provide a short description for non-DITA resources or create a short description that is specific to the context of the map -
When used in maps, overrides the
shortdescof a topic for link previews but not in the topic itself
When writing short descriptions:
-
Write the description last, after completing the topic content
Make it standalone so the topic is still complete even if the
shortdescis removedDo not restate the title or begin with phrases like Learn how... or This topic...
-
Focus on the context or purpose of a topic
-
Consider how it will appear in search results
Use shortdesc to:
-
Provide an effective summary that helps readers determine if the topic contains the information they need
-
Create consistent, meaningful link previews for topics referenced from maps and other content
-
Improve search engine optimization by providing concise, descriptive summaries
-
Associate descriptions with non-DITA objects (when used in maps)
-
Provide map-context-specific descriptions that may differ from the topic's default description
The shortdesc element added to a concept topic in the Heretto CCMS Content Editor.
The DITA source of the shortdesc element with the surrounding context of a concept:
<concept id="concept-4948" xml:lang="en-us">
<title>Coffee Brewing Fundamentals</title>
<shortdesc>Master the essential variables of coffee brewing, like water quality, temperature, grind size, and brewing time, to consistently create exceptional coffee that highlights bean characteristics while avoiding common extraction problems.</shortdesc>
<prolog>
<author translate="no" type="creator">Heretto User <user@heretto.com></author>
</prolog>
<conbody>
<p>Successful coffee brewing depends on controlling several critical variables. The interplay between water quality, temperature, grind size, and brewing time determines the final cup quality and flavor profile. Understanding and mastering these variables enables you to consistently produce coffee that highlights the bean's inherent characteristics while avoiding common extraction problems.</p>
<section>
<title>Water Quality</title>
<p>Water composition significantly affects extraction, comprising 98-99% of brewed coffee. The right mineral content and chemical composition are crucial for optimal extraction and flavor development:</p>
<ul>
<li>
<p>Mineral content (TDS): Ideal range is 150-200 ppm (parts per million). Water that is too soft (below 100 ppm) results in under-extraction and flat flavors, while extremely hard water (above 250 ppm) can lead to bitter flavors and scale buildup in equipment. Calcium and magnesium ions are particularly important.</p>
</li>
<li>
<p>(...)</p>
</li>
</ul>
</section>
</conbody>
</concept>Using shortdesc within a map to provide context-specific short descriptions for a topic:
<map id="coffee-basics-map">
<title>Coffee Brewing Basics</title>
<topicref href="coffee-brewing-fundamentals.dita">
<topicmeta>
<shortdesc>Control four simple factors in your coffee brewing process to make delicious coffee at home without expensive equipment.</shortdesc>
</topicmeta>
</topicref>
</map>