The <hazardstatement> element contains hazard warning information. It is based on the regulations of ANSI Z535 and ISO 3864. It enables the author to select the type of hazard, add information about the specific hazard and how to avoid it, and add one or more safety symbols.

Content models

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


+ topic/note hazard-d/hazardstatement


Danger: Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.

<hazardstatement type="danger">
    <typeofhazard>Rotating blade.</typeofhazard>
    <consequence>Moving parts can crush and cut.</consequence>
    <howtoavoid>Follow lockout procedure before servicing.</howtoavoid>
  <hazardsymbol href="rotatingblade.png"/>

Warning: Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.

<hazardstatement type="warning">
    <typeofhazard>Hot surfaces inside.</typeofhazard>
    <consequence>Contact might cause burn.</consequence>
    <howtoavoid>Wear protective gear before servicing internal parts.</howtoavoid>
  <hazardsymbol href="hotsurface.png"/>

Caution: Indicates a potentially hazardous situation which, if not avoided, might result in minor or moderate injury.

<hazardstatement type="caution">
    <typeofhazard>Lifting Hazard.</typeofhazard>
    <consequence>Might result in injury.</consequence>
    <howtoavoid>See safety manual for lifting instructions.</howtoavoid>
  <hazardsymbol href="heavy.png"/>

Notice: Indicates a potential situation which, if not avoided, might result in property damage or in an undesirable result or state.

<hazardstatement type="notice">
    <typeofhazard>Battery low</typeofhazard>
    <howtoavoid>Push and hold for charge state test.</howtoavoid>
  <hazardsymbol href="general.png"/>


The following attributes are available on this element: Universal attribute group, @outputclass, @spectitle, and the attributes defined below.

Describes the level of hazard. Safety hazard level definitions correspond to the same values in the ANSI Z535 and the ISO 3864 standards. Note that this differs from the @type attribute on many other DITA elements. See The @type attribute for detailed information on supported values and processing implications. Available values are note, tip, fastpath, restriction, important, remember, attention, caution, notice, danger, warning, other, and -dita-use-​conref-​target.
Indicates an alternate note type, when the type is not available in the @type attribute value list. This value is used as the user-provided note title when the @type attribute value is set to "other.".

Was this helpful?