[5.2]danger

danger — An admonition set off from the text indicating hazardous situation.

Synopsis

danger ::= [-]

Additional Constraints

  • caution must not occur among the children or descendants of danger
  • danger must not occur among the children or descendants of danger
  • important must not occur among the children or descendants of danger
  • note must not occur among the children or descendants of danger
  • tip must not occur among the children or descendants of danger
  • warning must not occur among the children or descendants of danger
  • If this element is the root element, it must have a version attribute.

Description

A danger element is an admonition, usually set off from the main text.

In some types of documentation, the semantics of admonitions are clearly defined (caution might imply the possibility of harm to equipment whereas warning might imply harm to a person), but DocBook makes no such assertions.

Processing expectations

Formatted as a displayed block. Often outputs the generated text “Danger” or some other visible indication of the type of admonition, especially if a title is not present. Sometimes outputs a graphical icon or other symbol as well.

Examples

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example danger</title>

<danger>
<para>Always disconnect power before opening the access hatch.
</para>
</danger>

</article>

Always disconnect power before opening the access hatch.